.NET

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

Suppress Dialog Layer - Excess Layer Filters - Dialog Showing Event

282 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,366
Registered: ‎06-29-2007
Message 2 of 4 (279 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 (266 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 (254 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!