Message 1 of 2
VBA code to change sketch's Dimensions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a simple code to resize sketch.
But it doesn't work with diameter and radius
Hope everyone can help me
Thanks and regards
Sub test()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oDim As Object
On Error Resume Next
Set selSet = oDoc.SelectSet
Dim constraint As DimensionConstraint
For Each constraint In selSet
'MsgBox constraint.Parameter.Expression
constraint.Parameter.Expression = 100
constraint.Driven = True
constraint.Driven = False
Next
End Sub