Modify Dimension Properties Example (VB.NET)
This example shows how to modify the properties of a selected dimension.
'----------------------------------------------------------------------------
' Preconditions:
' 1. Open a model document with a dimension.
' 2. Select the dimension.
'
' Postconditions: The properties of the selected dimension are modified
' as specified.
'
---------------------------------------------------------------------------
Imports
SolidWorks.Interop.sldworks
Imports
SolidWorks.Interop.swconst
Imports
System.Runtime.InteropServices
Imports
System
Partial
Class
SolidWorksMacro
Dim
Part As
ModelDoc2
Dim
boolstatus As
Boolean
Sub
main()
Part = swApp.ActiveDoc
boolstatus = Part.EditDimensionProperties3(1, 0, 0,
"",
"",
True, 9, 2,
True, 1, 1,
"",
"",
True,
"",
"",
True, 1,
"")
Part.ClearSelection2(True)
End
Sub
Public
swApp As
SldWorks
End
Class