Discussion forum
CAD discussion |
Please abide by the rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
Hi, help pls, how to extract. with Lisp, the NAME |
Post Reply |
Author | |
Kent Cooper
Senior Member Joined: 12.Mar.2013 Location: United States Using: AutoCAD2020, 2023 Status: Offline Points: 632 |
Post Options
Thanks(0)
Posted: 03.Jul.2023 at 19:37 |
By what method? If you mean to select the nested Xref, and if you can select it on something that is not a complex object [such as a Dimension or a further-nested element], then this should do it:
(cdr (assoc 2 (entget (car (last (nentsel "\nSelect basic object at top level in nested Xref: ")))))) The return from (nentsel) for a nested object ends with a list of what it's nested in, starting with the deepest-nested one and stepping up from there. So if [for example] you pick on a part of a Block in that Xref, you'll get the file name and Block name in "TWO|test" form, not just the Xref drawing file name -- maybe that would serve your purpose. But if you pick on a Dimension, you'll get something like "*D|REF6", which presumably would not.
Edited by Kent Cooper - 03.Jul.2023 at 19:44 |
|
dukeNukem
Newbie Joined: 03.Jul.2023 Location: Costa Rica Using: Autocad 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hi, help pls, how to extract. with Lisp, the NAME of the
file of an XREF, but that is inside another XREF |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,418 seconds.