Ilogic get parameter name from a selected sketch dimension
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a code that reads in the parameter name of a dimension that a user selects.
The code I have right now is to create a spacing between two points with the on center dimension between each point being equidistant. The code I have that works (HoleSpacingType.txt) works with the user typing in the dimension between the two points. Then the code makes two parameters called pilot# and spacing# that can be used in a pattern feature to make the holes.
I want to change it though so a user can just select that dimension instead. I thought I had it working with (HoleSpacingSelect.txt) but the name of the parameter the code returns is not the same as the one selected by the user. (Only works on reference dimensions)
Is there a way of modifying the code below so that it returns a selected parameter name instead of a selected component name?
SyntaxEditor Code Snippet
Dim oOccurrence As ComponentOccurrence Try oOccurrence = ThisDoc.Document.SelectSet.Item(1) Catch MessageBox.Show("Please select a component before running this rule.", "iLogic") Return End Try