.NET

.NET

Reply
Active Member
david.rock
Posts: 9
Registered: ‎09-15-2011
Message 1 of 4 (289 Views)

Suppress Dialog Layer - Excess Layer Filters - Dialog Showing Event

289 Views, 3 Replies
04-30-2012 04:41 AM

Hello,



Any ideas how I can suppress the dialog "Layer - Excess Layer Filters". I am running a script across hundreds of drawings and many of the drawings launch this dialog. There is no option of always do this option. So I was hoping to find a dialog showing event. Similar to the one in the Revit api.



I know how to erase the layer filters. I am looking to suppress the dialog.



Thanks very much

David

 

 

*Expert Elite*
Alfred.NESWADBA
Posts: 9,583
Registered: ‎06-29-2007
Message 2 of 4 (286 Views)

Re: Suppress Dialog Layer - Excess Layer Filters - Dialog Showing Event

04-30-2012 05:13 AM in reply to: david.rock

Hi,

 

>> I am looking to suppress the dialog.
If you start the command with a leading dash, then the layerdialog will not appear:
_-LAYER

HTH,

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
*Expert Elite*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 4 (273 Views)

Re: Suppress Dialog Layer - Excess Layer Filters - Dialog Showing Event

04-30-2012 09:16 AM in reply to: david.rock

I don't know about an event, but since you say you are scripting, you can set LAYERFILTERALERT to 0 for no action, or 1, to automatically delete layer filters without prompting.

Dave O.                                                                  Sig-Logos32.png
Contributor
david.rock
Posts: 11
Registered: ‎04-02-2003
Message 4 of 4 (261 Views)

Re: Suppress Dialog Layer - Excess Layer Filters - Dialog Showing Event

04-30-2012 01:57 PM in reply to: chiefbraincloud

Excelent, I didn't know the variable LAYERFILTERALER existed.

 

Thanks very much

David

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.