Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select Object

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
akbarg
347 Views, 3 Replies

Select Object

Spoiler
 

Is there a way to select a xref by the name?

I would like to use it in a script along with Draworder, moving the xref to the back.

But this option is not in the list: 

Select Object: Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/P
revious/Undo/AUto/SIngle/SUbobject/Object.

 

3 REPLIES 3
Message 2 of 4
Jeff_M
in reply to: akbarg

You can use a line of lisp to do it for you:

(ssget "x" '((2 . "*Parcel*")))

 

Replace "*Parcel*" with the name of the xref you want to select. Or use wildcards as I did...what I show will select all Inserted blocks (which includes Xrefs) whose name includes Parcel. It is not case-sensitive.

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 4
akbarg
in reply to: Jeff_M

Thanks!

It did the job!

Have a nice day!

Message 4 of 4
akbarg
in reply to: Jeff_M

This choice should be included in SELECT command!

 

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

Post to forums  

Rail Community


Autodesk Design & Make Report