Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hopefully this is an easy one.
I have a parameter driven series of holes. I then mirrored them (so there doubled). I would like to display #X holes in the note on the diameter dimension on the drawing where # is the value of a parameter and I can just say both sides. If the paramter (for example) was num_holes, how would I get the value of this parameter to display in the dimension.
Thanks, Dale
Solved! Go to Solution.
Do you mean without decimal places? That is where the [.x] at the end comes in, where x is the number of decimal places you want to show. To show a real number as an integer: &real_number_parameter[.0]
Dale -
In the dimension display properties, add the text:
&num_holes
or if your parameter is a real number parameter:
&num_holes[.0] (controls number of decimal places displayed)
If you are editing a drawing dimension, you will need to know the session ID of the part with the parameter:
&num_holes:xxx where xxx is the session ID
Thanks,
Josh
I am part of the way there now. If the parameter is a real number, but I want to display it an integer, is there a way to truncate the value?
Do you mean without decimal places? That is where the [.x] at the end comes in, where x is the number of decimal places you want to show. To show a real number as an integer: &real_number_parameter[.0]
I saw where you mentione the :xxx was for the session ID, but missed the [.0] was for zero digits after the decimal. So if I wanted two decimal places, would it be [.2] or [.xx]? Thanks,
I experimented with it and [.2] is for two decimals.
Thanks, I have used this thread numberous times.