AutoCAD 2013/2014 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Anyone knows script (command) to make filter and then select any filter.
I have to run this operation on several files. So, needs it script.
Solved! Go to Solution.
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
what type of filter do you want to create?
If you want to select objects by properties then you should look to LISP and function SSGET (>>>details<<<)
If you mean any other filter like e.g. layerfilter ... let us know. A sample description what you want to filter out of what sum of ... would be helpful to support you.
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I want to make filter on the basis of Layers name.
e.g.: I have so many layers having suffix *fix, like A_fix, B_fix etc. I need the script which can filter those layers.
After that script to select any filter too?
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
>> I need the script which can filter those layers.
Do you want to filter layers or to select objects on that layers (that's why I asked for a little description).
I assume now that you want to select object (and not layers), so try
_SELECT<ENTER>
(ssget "X" (list (cons 8 "*fix")))<ENTER>
<ENTER>
...is that what you are looking for?
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok I am explaining whole, what I need?
I have two types of layer groups, one having suffix *fix, and other having suffix *cat. I want to get diffrent pdfs for those, *fix & *cat layers.
I have thought following steps:
1. Turn off all layers,
2. Make separate layer filter for *fix & *cat layers.
3. Turn on *fix layer filter.
4. Run the script to get pdf.
Yesterday I asked you how to turn off all layers, now I am not getting the script to make filter for *fix, and *cat layers, and then turn on any filter. So, I want this one. Can I have the ans. for step 2 &3?
Hope you understand the problem.
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can you give me any file, from which I can study all about commands, scripts, lisp and macros?
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
>> Can you give me any file, from which I can study all about commands, scripts, lisp and macros?
At least some thousands of pages in the help >>>for 2013 and search<<< or within >>>this PDF you showed me yesterday<<<
>> I have thought following steps:
>> 1. Turn off all layers,
>> 2. Make separate layer filter for *fix & *cat layers.
>> 3. Turn on *fix layer filter.
>> 4. Run the script to get pdf.
You can't turn on a layerfilter, and if you already know layernames with wildchars you even don't need >>>layerfilters<<<
All off ... we had that yesterday, now for on for the layernames like "*fix":
_-LAYER<ENTER>
_-ON<ENTER>
*fix<ENTER>
<ENTER>
HTH, - alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Script (Commands) to make filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you, it worked.
:-)
