• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Visual LISP, AutoLISP and General Customization

    Reply
    *Expert Elite*
    Posts: 2,063
    Registered: ‎11-24-2009

    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

    Please use plain text.
    *Expert Elite*
    Posts: 839
    Registered: ‎08-16-2007

    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.

    Please use plain text.
    *Expert Elite*
    Posts: 2,063
    Registered: ‎11-24-2009

    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

    Please use plain text.