Solidworks Costing
Solidworks Costing
Solidworks Costing
Page 1 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
C#
VB.NET
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
C# Overview
This tutorial shows you how to create a custom SolidWorks PropertyManager page for an add-in using the SolidWorks SwCSharpAddin template and API.
Experience programming in C# in Microsoft Visual Studio .NET is a prerequisite of the tutorial. Carefully read all parts of this tutorial. The screen shots
appearing in many steps show you where and how to modify your C# project. Examine the highlighted code. For your convenience, three fully
implemented classes, whose code you can reference and copy and paste into your C# project, are included with this tutorial. See SwAddin.cs,
UserPMPage.cs, PMPHandler.cs in Completed C# Addin.
In this tutorial, you learn how to:
z
z
z
z
z
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 2 of 39
4. Locate and select the SolidWorks add-in template, SwCSharpAddin, from the list of Visual C# installed templates.
5. Type PropertyManagerPageAddin in Name.
6. Browse to the folder where to save the project in Location.
NREVIOUS
P
EXT TOPIC
TOPIC
7. Click OK.
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
in Solution Explorer to view all of the references, add-in classes, and bitmap files that you can use or modify for your
References
C# Add-in Classes
Bitmap Files
in the Microsoft Visual Studio IDE toolbar to compile and run the add-in and start SolidWorks.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 3 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 4 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
SolidWorks closes.
the types of user-interface controls supported by the SolidWorks API. See SolidWorks API Help > Getting Started > Programming with the
SolidWorks API > PropertyManager Pages > Using IPropertyManagerPage2.
the limits on the number of each type of control on any PropertyManager page. See SolidWorks API Help > SolidWorks APIs >
SolidWorks.Interop.sldworks Namespace > Interfaces > IPropertyManagerPage2.
The SwCSharpAddin template created two classes for the PropertyManager page of its add-in:
z
z
UserPMPage.cs
PMPHandler.cs
Using these classes as a starting point, you will use the SolidWorks API to change the add-in's user interface and behavior. The add-in's PropertyManager
page looks and feels similar to the other SolidWorks PropertyManager pages, but it also has a specialized workflow.
Your add-in's PropertyManager page workflow will:
1. Select an edge.
2. Modify its length.
3. Rebuild the model.
The workflow uses a few of the controls from the template add-in:
z
Selection box
Spin/combo box
Button
z
z
z
z
z
z
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 5 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
2. To increase the size of the editor pane, close the Solution Explorer window by clicking X in its title bar.
3. Locate the protected void AddControls() method in the code.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 6 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
in the IDE.
2. In the AddControls() method, change the title string for group1 from "Sample Group 1" to "Modify Extrusion".
3. Change the title string for group2 from "Sample Group 2" to "Rebuild the Model".
4. Change selection1 from group2 to group1 and change num1 from group2 to group1.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 7 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
5. Click
8. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 8 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. At the beginning of the AddControls() method, controlType, align, and options variables are declared. In AddControls(), immediately
before //selection1, assign these variables to control type, alignment, and visibility options as defined in the SolidWorks enumerators,
swPropertyManagerPageControlType_e, swPropertyManagerPageControlLeftAlign_e, swAddControlOptions_e.
4. Immediately after the controlType, align, and options assignments for button1, add the button1 control to group2 with a Redraw label, Click to
redraw tooltip, controlType, align, and options parameters.
5. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 9 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
7. Click
2. At the beginning of AddControls(), add two tab controls with captions Step 1 and Step 2.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 10 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
3. At the end of AddControls(), add group1 to tab1, add group2 to tab2, and activate tab1 on startup.
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
6. In UserPMPage.cs, add public method DisplayControls() which sets visibility of the group on each tab depending on the tab ID input parameter.
9. In UserPMPage.cs, initialize tab1 with a call to DisplayControls() after activating the tab.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 11 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 12 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. In AddControls(), remove or comment out assignments for textbox1, checkbox1, option1, option2, option3, list1, and combo1 and all of their
controlType, align, and options assignments and other related code.
Because PMPHandler.cs must fully implement the interface IPropertyManagerPage2Handler9, do not delete any event handling methods from
PMPHandler.cs. AfterClose() and OnClose() must contain code to prevent the .NET runtime environment from performing garbage collection at
the wrong time. With the exception of AfterClose() and OnClose(), methods that do not return anything (i.e., declared void) can be empty.
4. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 13 of 39
Set the SingleEntityOnly property to true so that only one selection is allowed.
z
z
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
2. For num1:
z
z
z
z
In SetRange2(), change:
{
minimum to 0.0.
maximum to 0.1.
inclusive to true.
increment to 0.001.
fast increment to 0.005.
slow increment to 0.0001.
{
{
{
{
{
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 14 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. In #region Local Variables, declare public variables of type Edge for each edge and public variables, x, y, and extrusion of type double. Initialize
x, y, and extrusion to 0.1. Also declare public variable modDoc.
4. In CreateCube():
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
z
z
specify (0,0,0), (x,0,0), and (0,y,0) to align the sketch's x and y axes.
replace FeatureExtrusion() with FeatureExtrusion2()
Page 15 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
5. Add a public method GetAxisOfSelectedEdge() in #region UI Callbacks, whose input parameter is the selected object from the event handler and
whose return string contains the calculated axis.
7. Because GetAxisOfSelectedEdge() must populate the num1 control of UserPMPage with the current length of the selected edge, add public method
SetNum1() in UserPMPage.cs to set the value of the private variable num1.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 16 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
9. Because PMPHandler needs to store the axis for later use, declare the axis variable at the top of PMPHandler.cs and initialize axis to "extrusion" in
the constructor of the handler.
3. In SwAddin.cs in #region UI Callbacks, add public method ModifyCube(), which takes as input parameters edgeSize and axis, which are stored
by the event handler. Like CreateCube(), ModifyCube() extrudes a sketch. Also like CreateCube(), ModifyCube() stores edge IDs. But unlike
CreateCube(), ModifyCube() does not reset the extrusion parameters to 0.1, so that the user can continue to change edge lengths and re-extrude.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 17 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
4. In PMPHandler.cs in OnButtonPress(), call userAddin.ModifyCube(), passing in edgeSize and axis to rebuild the cube.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 18 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
6. In Solution Explorer, right-click pm_extruded_block.bmp and select Properties.
7. Click the down-arrow button in the Build Action row and change Content to Embedded Resource.
2. In the constructor of UserPMPage, initialize iBmp and thisAssembly before calling CreatePropertyManagerPage().
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 19 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
4. In AddControls()after setting its selection filter, cast selection1 to IPropertyManagerPageControl and add standard SolidWorks bitmap label
swBitmapLabel_SelectEdge to the control.
5. In AddControls()after setting its display units, cast num1 to IPropertyManagerPageControl and add standard SolidWorks bitmap label
swBitmapLabel_LinearDistance to the control.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 20 of 39
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
VB.NET Overview
This tutorial shows you how to create a custom SolidWorks PropertyManager page for an add-in using the SolidWorks SwVBAddin template and API.
Experience programming in VB.NET in Microsoft Visual Studio .NET is a prerequisite of the tutorial. Carefully read all parts of this tutorial. The screen
shots appearing in many steps show you where and how to modify your VB.NET project. Examine the highlighted code. For your convenience, three fully
implemented classes, whose code you can reference and copy and paste into your VB.NET project, are included with this tutorial. See SwAddin.vb,
UserPMPage.vb, PMPHandler.vb in Completed VB.NET Addin.
In this tutorial, you learn how to:
z
z
z
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 21 of 39
various directories.
1. Ensure that you have installed Microsoft Visual Studio .NET (2008 or later) and a compatible version of Microsoft .NET Framework.
2. For instructions on how to download the SolidWorks API SDK, open API Help > SolidWorks API Help > Getting Started > Overview.
3. Click Next on the Welcome to the InstallShield Wizard for SolidWorks API SDK page.
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
Use the SolidWorks SwVBAddin template from the SolidWorks API SDK to create a VB.NET add-in project in Microsoft Visual Studio.
VB.NET Overview
NEXT TOPIC
in Solution Explorer to view all of the references, add-in classes, and bitmap files that you can use or modify for your
References
VB.NET Add-in Classes
Bitmap Files
in the Microsoft Visual Studio IDE toolbar to compile and run the add-in and start SolidWorks.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 22 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
5. Select VB Addin > CreateCube in SolidWorks.
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 23 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
SolidWorks closes.
the types of user-interface controls supported by the SolidWorks API. See SolidWorks API Help > Getting Started > Programming with the
SolidWorks API > PropertyManager Pages > Using IPropertyManagerPage2.
the limits on the number of each type of control on any PropertyManager page. See SolidWorks API Help > SolidWorks APIs >
SolidWorks.Interop.sldworks Namespace > Interfaces > IPropertyManagerPage2.
The SwVBAddin template created two classes for the PropertyManager page of its add-in:
z
z
UserPMPage.vb
PMPHandler.vb
Using these classes as a starting point, you will use the SolidWorks API to change the add-in's user interface and behavior. The add-in's look and feel are
similar to other SolidWorks PropertyManager pages, but this add-in will have a specialized workflow.
Your PropertyManager page workflow is a three-step process:
1. Select an edge.
2. Modify its length.
3. Rebuild the model.
The workflow uses a few of the controls from the add-in template:
z
Selection box
Spin/combo box
Button
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 24 of 39
2. To increase the size of the editor pane, close the Solution Explorer window by clicking X in its title bar.
3. Locate the AddControls() subroutine in the code.
4. To specify the same options setting for both group1 and group2, you can simply comment out the options assignment before the group2
assignment. The same options parameter is then passed to the AddGroupBox()constructor for both group boxes. To learn more about the bitmask
enumeration swAddGroupBoxOptions_e, see SolidWorks API Help > SolidWorks Enumerations > SolidWorks.Interop.swconst Namespace >
Enumerations > swAddGroupBoxOptions_e.
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
in the IDE.
2. In the AddControls() subroutine, change the title string for group1 from "Sample Group I" to "Modify Extrusion".
3. Change the title string for group2 from "Sample Group II" to "Rebuild the Model".
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 25 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
4. Change selection1 from group2 to group1 and change num1 from group2 to group1.
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
5. Click
8. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 26 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. At the beginning of the AddControls() subroutine, controlType, leftAlign, and options variables are declared. In AddControls()before the
Combo1 section, add a Button1 section assigning control type, alignment, and visibility options as defined in the SolidWorks enumerators,
swPropertyManagerPageControlType_e, swPropertyManagerPageControlLeftAlign_e, swAddControlOptions_e.
4. Immediately after the controlType, align, and options assignments for button1, add the button1 control to group2 with a Redraw label, a Click
to redraw tooltip, controlType, align, and options parameters.
5. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 27 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
7. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 28 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
3. At the beginning of AddControls(), add two tab controls with captions Step 1 and Step 2.
4. At the end of AddControls(), add group1 to tab1, add group2 to tab2, and activate tab1 on startup.
7. In UserPMPage.vb, add subroutine DisplayControls() which sets visibility of the control groups depending on the tab ID input parameter.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 29 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 30 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. In AddControls(), remove or comment out assignments for checkbox1, option1, option2, option3, list1, and combo1 controls and all of their
controlType, align, and options assignments.
Because PMPHandler.vb must fully implement the interface IPropertyManagerPage2Handler9, do not delete any event handling subroutines from
PMPHandler.vb. AfterClose() and OnClose() must contain code to prevent the .NET runtime environment from performing garbage collection at
the wrong time.
4. Click
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 31 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
z
z
z
Set the SingleEntityOnly property to true so that only one selection is allowed.
Change the Height property from 50 to 25.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 32 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
2. For num1:
z
In SetRange2(), change:
{
minimum to 0.0.
maximum to 0.1.
inclusive to True.
increment to 0.001.
{
{
{
{
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 33 of 39
of the extrusion a handle or ID. If you create the extrusion sketch along x and y axes using Create3PointCornerRectangle(), you know in advance what
axis the selected edge is on and can re-extrude accordingly.
1. Open SwAddin.vb in the editor.
2. Create subroutine StoreEdgeIds()in #Region "UI Callbacks" to store IDs for all 12 edges in the extrusion.
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
3. In #region "Local Variables", declare 12 edge variables as Edge types and declare x, y, and extrusion as double types. Initialize x, y, and
extrusion to 0.1. Declare model as a ModelDoc2 type.
4. In CreateCube():
z
specify (0,0,0), (x,0,0), and (0,y,0) to align the sketch's x and y axes.
replace FeatureExtrusion() with FeatureExtrusion2().
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 34 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
5. Add a public function GetAxisOfSelectedEdge() in #region "UI Callbacks", whose input parameter is the selected edge and whose return string
contains its calculated axis (x, y, or extrusion).
7. Because GetAxisOfSelectedEdge() populates the num1 control with the current length of the selected edge, in UserPMPage.vb add public
subroutine SetNum1() to set the value of private variable num1.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
8. In PMPHandler.vb in OnSubmitSelection(), call userAddin.GetAxisOfSelectedEdge() to calculate the axis of the selected edge.
Page 35 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
9. Because PMPHandler must store the selected axis for later use, declare axis as a String type at the top of PMPHandler.vb and initialize axis to
"extrusion" in the Init() function of the handler.
2. In OnNumberboxChanged(), set edgeSize to the value returned by the spin box control, val.
3. In SwAddin.vb in #Region "UI Callbacks", add public subroutine ModifyCube(), which takes input parameters edgeSize and axis passed by the
handler. Like CreateCube(), ModifyCube() extrudes a sketch and stores edge IDs. Unlike CreateCube(), ModifyCube() does not use the original
extrusion parameters, but rather uses edgeSize and axis to re-extrude.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 36 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
4. In PMPHandler.vb in OnButtonPress(), call userAddin.ModifyCube(), passing in edgeSize and axis to rebuild the cube.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 37 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
8. Close Properties.
2. In AddControls()after setting its selection filter, cast selection1 as a PropertyManagerPageControl and add standard SolidWorks bitmap label
swBitmapLabel_SelectEdge to the control.
3. In AddControls()after setting its display units, cast num1 to a PropertyManagerPageControl and add standard SolidWorks bitmap label
swBitmapLabel_LinearDistance to the control.
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 38 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015
Page 39 of 39
NREVIOUS
P
EXT TOPIC
TOPIC
C# Overview
Installing
Using
Compiling
Designing
Expanding
Changing
Removing
Configuring
Modifying
Adding
the
Visual
Multiple
Icons
a Button
the
Titles
SolidWorks
Numberbox
Control
a
and
Unused
aSelection
Group
to
SolidWorks
Cues
Running
Tabs
and
Title
Control
Event
onBar
C#
Add-in
Location
API
VB.NET
the
PropertyManager
Startup
Groups
Controls
Handlers
and
Add-in
SDK
Numberbox
Button
Controls
Template
Add-in
and
of Controls
Control
Event
Template
Controls
Page
N
EXT TOPIC
Handlers
Event
Handlers
N
EXT TOPIC
Using
Removing
Configuring
Changing
the Alignment
SolidWorks
Unused
SelectionofC#
N
EXTNumberbox
TOPIC
Compiling
Designing
Expanding
Changing
Modifying
Adding
Visual
Multiple
a and
Button
Titles
Numberbox
a
and
a Group
Cues
Running
Tabs
and
Control
on
Add-in
and
Controls
Template
Event
Controls
Location
the
PropertyManager
Startup
Groups
and
Add-in
Button
ofControl
Controls
Control
Page
Handlers
Adding
Modifying
Icons
to Title
Event
Bar
Pand
REVIOUS
TOPIC
Event
Handlers
Handlers
Controls
VB.NET Overview
NEXT TOPIC
Using the SolidWorks
VB.NET Add-in Template
file:///C:/Users/Nieve/AppData/Local/Temp/~hh1148.htm
02-05-2015