Using iLogic to show/hide sketch symbols

Using iLogic to show/hide sketch symbols

Tom_Jipping
Enthusiast Enthusiast
1,429 Views
2 Replies
Message 1 of 3

Using iLogic to show/hide sketch symbols

Tom_Jipping
Enthusiast
Enthusiast

I am trying to make a custom iLogic for our company, I am mostly done but there is one more feature that I want to implement in the menu. I know it's possible to use a button inside a form to show or hide sketch symbols in an IDW. But how to exactly realize that is a big questionmark for me. Is it through a custom rule that you have to write?

 

I hope there is somebody here that can help me out with this.

 

Kind Regards,

Tom

Accepted solutions (1)
1,430 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Yes. You would need to use an iLogic rule.  When editing an iLogic form, you can drag & drop an iLogic rule over onto the form, which creates a button.  Clicking this button runs the underlying rule.  There are some options you can set as to what order certain actions take when you click the button.

 

However, I'm not aware of a oSketchedSymbol.Visible property that you can turn on/off.  Unless you're planning on deleting it, when not needed, then placing it again when needed.  It's leader has a .LeaderVisible property, though.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 3

marcin_otręba
Advisor
Advisor
Accepted solution

hi,

 

it is not possible to show/hide sketched symbol. What you can do is to create custom invisible layer and move your sketched symbol there. for example:

Dim drw As DrawingDocument = ThisDoc.Document
Dim osk As SketchedSymbol= drw.SelectSet.Item(1)
Dim sk As Sketch
osk.Definition.Edit(sk)
osk.Layer= drw.StylesManager.Layers.Item("invisible")
sk.TextBoxes.Item(1).Layer = drw.StylesManager.Layers.Item("invisible")
osk.Definition.ExitEdit

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders