I am building a tool that navigates through saved views and applies a display rule to the saved view based on named groups created from ISO pipe properties. The question I have is regarding an issue with how and when display rules are applied.
When I apply a display style with a display rule via keyin (display style with a display rule already applied stored in a dgnlib), the display rule is not actually applied until the display styles dialog is physically opened whether by button or keyin. The keyin to apply a display rule does not exist until the display styles dialog is physically opened. Is there a way to load the dialog in silent mode so that I can apply the display rule? What is the keyin to close the display styles dialog as I am unable to find it or figure out what it is. Anyone have any ideas?
Mark Winegar said:Is there a way to load the dialog in silent mode so that I can apply the display rule?
With the display styles dialog showing, look in the list of loaded MDL applications. You can find it under Utilities. The MDL apps. is CUSTOMDISPMODE. You can load that app. using key-in mdl load CustomDispMode. The dialog doesn't pop but you can see that the app. is loaded in the Loaded Applications dialog.
mdl load CustomDispMode
If you're writing a VBA app. you can send that key-in using
CadInputQueue.SendCommand "mdl load CustomDispMode"
Regards, Jon Summers LA Solutions
Answer Verified By: Mark Winegar
thanx!
I have a new question regarding the same mdl. I need to delete the display rule from the dialog via a key-in or vba call. Any ideas on what that might be? I have been searching and can execute the load of the dialog and the editing of the rule by name but no ability to delete it unless I reach in a pick the button. This is for a scenario when the dialog has a lot of them and manually deleting them one by one is not feasible.
Hi Mark,
Mark Winegar said:I have a new question regarding the same mdl
I recommend to ask in a new post, this thread is 9 months old, so about 3 updates have been released from this time, and moreover the original topic was not about deleting of display rules.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point