Message 1 of 2

Not applicable
07-28-2020
09:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to use a variable I get from selection to write the code, to be more precise, I want the user to select a entity, and then the code will get the type of this entity and I will use ssget to make a list of everything that has that type. So far, I'm trying this:
(defun c:qualtipo()
(setq tipsel (entsel))
(setq tip (entget (car tipsel)))
(setq tipolayer (dxf 8 tip))
(setq ss (ssget "X" ' ((0. "LINE")((8. tipolayer)))))
(setq count (sslength ss))
)
But everytime I get bad ssget list.
Solved! Go to Solution.