iLogic script to place centermarks on all holes that are exactly 10mm in radius, and remove extension lines

iLogic script to place centermarks on all holes that are exactly 10mm in radius, and remove extension lines

C_Haines_ENG
Collaborator Collaborator
387 Views
2 Replies
Message 1 of 3

iLogic script to place centermarks on all holes that are exactly 10mm in radius, and remove extension lines

C_Haines_ENG
Collaborator
Collaborator

I am trying to figure out how to run an Ilogic command to place cenetermarks on a drawing view for only 10mm raduis circles, and then remove the extension lines. Ideally they would place without extension lines in the first place but I have a feeling thats not possible. 

 

Any help would be massively appreciated. 

0 Likes
388 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @C_Haines_ENG.  Are you aware of the 'Automated Centerlines' tool available in drawings?  When you right-click on a drawing view, then choose "Automated Centerlines..." from that right-click menu, it brings up a small dialog where you can set how you want it to behave when used.

It looks like this:

WCrihfield_0-1651676099915.png

These settings can be accessed by code too, but of course it's more complicated than simply using the user interface tool.  There is an object called 'AutomatedCenterlineSettings' which can be accessed from the DrawingSettings object, from a DrawingSketch object, and from DrawingView objects.  Once you have obtained that object, you can set its various properties as needed, then use the DrawingView.SetAutomatedCenterLineSettings() method to apply them to the view.  I generally don't mess with 'radius threshold' or 'arc angle threshold minimum', but that sounds like what you may need set-up in this situation.  The extension lines will be controlled by whatever CentermarkStyle  is currently active when the tool is used to generate the centermarks/centerlines, and what.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

C_Haines_ENG
Collaborator
Collaborator

I actually got this idea by using the automated centerlines, the only issue is that I need to disable the extension lines on all the center marks and the automated centerline tool does not seem to include this. The dimension threshold is also important as there is only one size of hole that will need centermarks. 

0 Likes