Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting Nested Entities in X-Ref

Status
Not open for further replies.

SouthernDrafter

Civil/Environmental
Joined
Nov 7, 2002
Messages
133
Location
US
If there any tool or lisp routine that could select a nested entity in an X-ref for properties changing? With most commands, when you select an entity in an X-Ref the whole thing lights up, except for trim and extend commands. I would think there would be a way select such objects for properties changing too.

The reason I would like this feature is because of the time it would save in, say, changing an X-reffed's layer's color without having to hunt it down in the layer dialogue box, especially when you have some 500-600 layers to scroll through.

Any thoughts are appreciated.
 
Here's a short routine that returns the entity's data. You should be able to "pick" the layer name out of the list - it follows the 8 as in (8 . "LAYERNAMEHERE"). Type "nent" to start it.

(defun c:nent ()
(entget (car (nentsel "\nPick Nested Entity")))
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top