Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to sort my sketch dimensions by using dimension orientation enumerator: (Inventor.DimensionOrientationEnum.kHorizontalDim,Inventor.DimensionOrientationEnum.kVerticalDim)
Parameter value of all horizontal dimensions I would like to increase for some value, and vertical for some other values.
I tried something but this code just recognize creation type of the dimensions, not orientation.
' Get a reference to the DimensionConstraints collection.
Dim dimConstraints As Inventor.DimensionConstraints
Set dimConstraints = Sketch1.DimensionConstraints
' Get a reference to the Horizontal DimensionConstraints collection.
Dim dimHoriz As DimensionConstraint
For Each dimHoriz In dimConstraints
If dimHoriz.Type = kTwoPointDistanceDimConstraintObject Then
dimHoriz.Parameter.Value = dimHoriz.Parameter.Value + 0.1
End If
Next
I would appreciate if someone can give me advice.
Best regards
Danijel
Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
Solved! Go to Solution.