Jump to content

[Lisp] What objects can be selected with ssget


ziele_o2k

Recommended Posts

As in thread title, what objects can be selected with ssget?

Here is site, which I'm using to know something more about entities, but I don't know what kind of entities I can select with ssget...

Link to comment
Share on other sites

I think that ssget applies to all graphical entities, listed under chapter 6: ENTITIES Section or these that you can "see" in model/paperspace, ofcourse there may be other types of entities than these of the standard AutoCAD, such as AutoCAD Architecture's:

 (0 . AEC_WALL) (0 . AEC_DOOR)

Or Civil 3D.

Link to comment
Share on other sites

I think that ssget applies to all graphical entities, listed under chapter 6: ENTITIES Section or these that you can "see" in model/paperspace, ofcourse there may be other types of entities than these of the standard AutoCAD, such as AutoCAD Architecture's:
 (0 . AEC_WALL) (0 . AEC_DOOR)

Or Civil 3D.

 

Thank you.

Link to comment
Share on other sites

You could check all the used types in a drawing with:

(setq TypesLst (list))
(if (setq SSX (ssget "_X"))
(repeat (setq i (sslength SSX))
	(and
		(setq typ (cdr (assoc 0 (entget (ssname SSX (setq i (1- i)))))))
		(not (member typ TypesLst))
		(setq TypesLst (cons typ TypesLst))
	)
)	
)
(foreach x (acad_strlsort TypesLst) (print x))

After testing on a drawing made with ACAD Architecture I got:

"3DSOLID" 
"ACAD_TABLE" 
"AEC_2D_SECTION" 
"AEC_BDG_SECTIONLINE" 
"AEC_DOOR" 
"AEC_MASS_ELEM" 
"AEC_MVBLOCK_REF" 
"AEC_RAILING" 
"AEC_ROOF" 
"AEC_ROOFSLAB" 
"AEC_SLAB" 
"AEC_SPACE" 
"AEC_STAIR" 
"AEC_WALL" 
"AEC_WINDOW" 
"AEC_WINDOW_ASSEMBLY" 
"AECS_MEMBER" 
"ARC" 
"CIRCLE" 
"DIMENSION" 
"HATCH" 
"INSERT" 
"LINE" 
"LWPOLYLINE" 
"MTEXT" 
"SPLINE" 
"TEXT"

But I also don't know what are ALL the standard used types so I rely on AutoCAD's object model.

Note that type (assoc 0 ..) is some kind of property that is part of the dxf list, which represents the whole entity/ename, just like (assoc 10, 40, 50 ..).

This is just my vision about this, dunno if I wrote some B.S.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...