Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Name dim/parameter during creation (dimcontraints)

1 REPLY 1
SOLVED
Reply
Message 1 of 2
CadUser46
296 Views, 1 Reply

Name dim/parameter during creation (dimcontraints)

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
1 REPLY 1
Message 2 of 2
CadUser46
in reply to: CadUser46

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report