Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-06-23, 03:09 PM   #1
Martin P
AUGI Addict
 
Join Date: 2003-04
Location: Scotland
Posts: 1,565
Martin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the stars
Default filters in lisp/scripts?

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.
Martin P is offline   Reply With Quote
Old 2004-06-23, 04:10 PM   #2
jwanstaett
I could stop if I wanted to
 
Join Date: 2002-02
Location: Kansas
Posts: 462
jwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of light
Default RE: filters in lisp/scripts?

see ssget function in AutoLISP Reference help

this function will let you Select Objects useing a filter
jwanstaett is offline   Reply With Quote
Old 2004-06-23, 08:01 PM   #3
whdjr
I could stop if I wanted to
 
Join Date: 2003-05
Posts: 335
whdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of light
Default RE: filters in lisp/scripts?

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
whdjr is offline   Reply With Quote
Old 2004-06-23, 09:48 PM   #4
Martin P
AUGI Addict
 
Join Date: 2003-04
Location: Scotland
Posts: 1,565
Martin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the starsMartin P is shooting for the stars
Default RE: filters in lisp/scripts?

excellent, thank you for that and I will have a look at ssget
__________________
http://www.highplans.co.uk/
Martin P is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 10:54 AM.