Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 11 of 13 (69 Views)

Re: get the layer-informations by dimensions / blogs by nentsel

04-04-2012 09:26 AM in reply to: dbroad

dbroad wrote:

OP said he already had the results of nentsel.

 ........

If so, assume he uses ns for that result. Assume OP has already done (setq ns (nentsel))

What is simplest is to generally use what you already have.

 


 

 Thats is why i said "I would have  thought"  :smileyhappy:

 

What i did  was select the parent block then invoke nentselp. Doesnt that give the same result?

variable d is the parent and nobj is the nested object.

 

Thanks for that snippet Dbroad

 

Cheers

*Expert Elite*
dbroad
Posts: 1,477
Registered: ‎08-16-2007
Message 12 of 13 (63 Views)

Re: get the layer-informations by dimensions / blogs by nentsel

04-04-2012 10:50 AM in reply to: pbejse

>>Doesnt that give the same result? variable is the parent and nobj is the nested object.

 

It certainly works.  The reason I chimed in is that it didn't directly answer his question, which I interpreted to mean, "How to get the parent block given the nentsel return value?"  I thought he could figure out how to obtain the layer from your example without further assistance but perhaps was assuming too much.  :smileyhappy:

 

Your approach would have been another valid approach but if the person wants both the parent and the nested entity, only one call need be made, that to nentsel.

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 13 of 13 (60 Views)

Re: get the layer-informations by dimensions / blogs by nentsel

04-04-2012 11:00 AM in reply to: dbroad

dbroad wrote:

 

Your approach would have been another valid approach but if the person wants both the parent and the nested entity, only one call need be made, that to nentsel.


Right on.:smileyhappy:

 

Cheers dbroad

You are not logged in.

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community