- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a piece of code that will add text to a dimension. The added text will vary depending on the dimension value. The dimension is the distance between 2 end-holes of a series of equally spaced holes. For example: a series of 11 holes at 2.00 spacing will have a dimension of 20.00. I want to select the dimension, have iLogic to prompt for the hole-to-hole spacing, calculate the count and then add the text to the dimension ("10 EQ SP @ 2.00 = ").
The final dimension with the added text will look like this:
10 EQ SP @ 2.00 = 20.00
The critical step I am unable to solve is: getting the dimension value so I can perform the calculation.
I suppose it would be even better if I could window around the set of holes and dimension and have iLogic count them, calculate the spacing and add the text without prompting, but I'll settle for one step at a time.
(BTW, I know I stated there are 11 holes, that means there are 10 spaces. We state number of spaces so that the note reads like an equation (i.e. 10 x 2 = 20).)
Thanks,
Dale
Solved! Go to Solution.