Surface visibility in drawing specific by surface name using ilogic or API

Surface visibility in drawing specific by surface name using ilogic or API

Andrew_Burnett
Enthusiast Enthusiast
734 Views
2 Replies
Message 1 of 3

Surface visibility in drawing specific by surface name using ilogic or API

Andrew_Burnett
Enthusiast
Enthusiast

I am looking for some help.  I have tried multiple time to get code to do this but have been un successful.  We have a part that we export to a dwg file for the plasma table.  The part is all surfaces so that we get only the cutting lines and not the extra lines you get with thicknesses.  I have it set up with centerline marks for all the holes we would have but the user cn select each hole and tell whether it is shown or not in the part.  On the drawing all the surfaces appear.  We can manually change the visibility of the surface through the model tree.  I would like to do it with iLogic or API.  Hoping that someone can help me with a little bit of code to get this to work.

 

Example with all surfaces shown:

AndrewLBurnett_0-1600705990567.png

 

 

Example of what we would want it to look like after user selects number of holes:

AndrewLBurnett_1-1600706109576.png

 

 

Thank you in advance.

0 Likes
Accepted solutions (1)
735 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Would it be possible for you to post your files (or simpler test files) for us to test possible solutions for you on?

If I were to write code to show/hide only certain 'centerline marks', how would you want to choose which ones you want to show/hide.  Are each of the entities named a certain way that would tell you which ones you show/hide?  Are they on different 'Layers'?  Would you want to choose from a List of their names using an InputListBox()?

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

Andrew_Burnett
Enthusiast
Enthusiast
Accepted solution

Thanks for the response.  I was actually able to get it with writing the rule in the part instead of the drawing.  When the form runs the rule in the part it now suppresses the visibility of the surface in the drawing.   So I was able to add it to the rule that turns the hole on and off.

 

Thank you for your time..

0 Likes