Dimension line leader variable

Dimension line leader variable

brad
Advocate Advocate
686 Views
5 Replies
Message 1 of 6

Dimension line leader variable

brad
Advocate
Advocate

Does anyone know what the variable name is to turn on a dimension line leader? I want to be able to select several dimensions and turn the leaders for all of the selected dimensions on at once so that when I do continuous dimensions I don't have to click on each individual dimension and turn the leader option on and then position the dimension. I want to create a macro in either ilogic or VBA to turn them on through a shortcut command. Thanks in advance for you help on this.

0 Likes
687 Views
5 Replies
Replies (5)
Message 2 of 6

johnsonshiue
Community Manager
Community Manager

Hi Brad,

 

This may be a bit tricky. I am not an API expert. Please bear with me. Dimension objects have several types. Take Linear Dimension for example. Here is the property to control if the leader is shown.

 

LinearGeneralDimension.ShowLeader

 

But, the same property exists for each dimension type. Depending on which dimension is selected, the same property will need to be called.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 3 of 6

kent_wold
Enthusiast
Enthusiast

You can set up a dimension style that all leaders are turned on and then pick that style as you are creating the dimensions or select all dims that you want the leader turned on and change the style to the Leaders On style you create... 

0 Likes
Message 4 of 6

brad
Advocate
Advocate

can you show me where this is at in the style editor? I have scoured the dimension options and I can't find a way to turn leaders on for all dimensions.

0 Likes
Message 5 of 6

brad
Advocate
Advocate

Johnson Shiue - can you give me an example of how this would be used in an ilogic setting. also, is there a list of parameters like this somewhere for reference? where did you find this parameter?

0 Likes
Message 6 of 6

johnsonshiue
Community Manager
Community Manager

Hi Brad,

 

As I mentioned earlier, I am not an API expert so I cannot share an example. How I found this particular property is to go to Help -> Programming/API Help -> search for "dimension" and "leader."

Please feel free to ask the API related question on Inventor iLogic, API, and VBA forum.

 

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/bd-p/120

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes