Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Touching object

2 REPLIES 2
Reply
Message 1 of 3
manikandan.s
404 Views, 2 Replies

Touching object

Hi all

I want to get how many objects are touch or crossing selected object

I tried fence selection but it is working mean it not select any object

Please suggest

Thanks in advance
2 REPLIES 2
Message 2 of 3
devitg
in reply to: manikandan.s

If you do it bay hand at the command line , it will show at the command line.

If you do it by LISP , guess

(setq selection ( ssget "c" pt1 pt2 ))

(setq selection quantity (sslenght selection))

But pt1 and pt2 SHALL be at the visible screen, so before you must do a ZOOM window pt1 pt2 . previous to SSGET , as follow

(command "zoom" "w" pt1 pt2 )
(setq selection ( ssget "c" pt1 pt2 ))
(setq selection quantity (sslenght selection))

The only SSGET that select all is (ssget "X" )

X Entire database. If you specify the X selection method and do not provide a filter-list, ssget selects all entities in the database, including entities on layers that are off, frozen, and out of the visible screen.



Message 3 of 3

Please attach drawing file with enttities..or upload files. /i]

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost