AutoCAD Civil 3D General

Posts: 13
Registered: ‎09-14-2012
Message 1 of 4 (202 Views)
Accepted Solution

Select Object

202 Views, 3 Replies
10-18-2012 02:18 PM

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


*Expert Elite*
Posts: 3,970
Registered: ‎07-22-2003
Message 2 of 4 (188 Views)

Re: Select Object

10-18-2012 04:19 PM 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
Posts: 13
Registered: ‎09-14-2012
Message 3 of 4 (169 Views)

Re: Select Object

10-19-2012 05:05 AM in reply to: Jeff_M


It did the job!

Have a nice day!

Posts: 13
Registered: ‎09-14-2012
Message 4 of 4 (168 Views)

Re: Select Object

10-19-2012 05:10 AM in reply to: Jeff_M

This choice should be included in SELECT command!


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D