Name dim/parameter during creation (dimcontraints)

Name dim/parameter during creation (dimcontraints)

CadUser46
Collaborator Collaborator
365 Views
1 Reply
Message 1 of 2

Name dim/parameter during creation (dimcontraints)

CadUser46
Collaborator
Collaborator

Is it possible to name the dimension during creation when using osketch.dimensionconstraints.add ?

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
Accepted solutions (1)
366 Views
1 Reply
Reply (1)
Message 2 of 2

CadUser46
Collaborator
Collaborator
Accepted solution

Figured it out.

 

Dim oDim As DimensionConstraint
Set oCoord1 = oTG.CreatePoint2d(2.5, -3)
Set oDim = oSketch.DimensionConstraints.AddOffset(oLine1, oCenterLine, oTG.CreatePoint2d(-5, 0), True, False)
oDim.Parameter.Name = "TEST"

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes