|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
AUGI Addict
Join Date: 2003-04
Location: Scotland
Posts: 1,565
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Using Revit and Autocad in our office, and have automated some of the tasks we need to do regularly to get the exported DWG Files into a format we need - using a fairly simple lisp routine...
I can do everything apart from filter out the all the "SOLID" hatch for deletion and have to do this manually each time, there isnt a "-filter" to make it usable through lisp, ie it only works in the dialogue box as far as I can tell. Is there a simple way to do this using lisp or scripts - I suspect there probably isnt? Its not hugely important, but I just wondered how you lisp gurus do actually filter stuff out?
__________________
http://www.highplans.co.uk/ Last edited by Martin P : 2004-06-23 at 03:39 PM. |
|
|
|
|
|
#2 |
|
I could stop if I wanted to
Join Date: 2002-02
Location: Kansas
Posts: 462
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
see ssget function in AutoLISP Reference help
this function will let you Select Objects useing a filter |
|
|
|
|
|
#3 |
|
I could stop if I wanted to
Join Date: 2003-05
Posts: 335
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Martin,
Yes there are ways to filter out different items in selection sets: (setq ss (ssget '((0 . "HATCH")(2 . "SOLID")))) collects all the solid hatches and nothing else. You can use conditionals to filter things using and, or, not, etc. Also you can use wildcards. Review the visual lisp help files for more examples.
__________________
Good Blockin' Will DeLoach AutoCad / ADT 2006 |
|
|
|
|
|
#4 |
|
AUGI Addict
Join Date: 2003-04
Location: Scotland
Posts: 1,565
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
excellent, thank you for that
__________________
http://www.highplans.co.uk/ |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Phase filters - more overrides | Martin P | Revit Architecture "Original" Wish List (Archived) | 4 | 2005-02-10 12:25 AM |
| Are junk layer filters added? | tomdillenbeck | AutoCAD General | 7 | 2004-08-31 08:59 PM |
| Layer filters, anyone? | gbrowne | AutoCAD LT - General | 1 | 2004-07-20 09:15 PM |
| Phase filters and linetypes | Steve_Stafford | Revit Architecture - General | 0 | 2003-06-30 11:30 PM |
| better selection filters | Martin P | Revit Architecture "Original" Wish List (Archived) | 5 | 2003-05-02 11:07 PM |