Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I distinguish a block that can't be explode in my LISP application?

1 REPLY 1
Reply
Message 1 of 2
markshagal
280 Views, 1 Reply

How can I distinguish a block that can't be explode in my LISP application?

How can I distinguish a block that can't be explode in my LISP application? DXF group 280 not present in GETENTITY list.
1 REPLY 1
Message 2 of 2
_Tharwat
in reply to: markshagal

Exmplae ..

 

(setq ss (car (entsel "\n Select a block :")))

 

 

With this you would know if the block is not explodable or not ..

 

(not (vlax-method-applicable-p
       (vlax-ename->vla-object ss)
       'Explode
     )
)

 

 

With this also as well ....

 

(eq (vla-get-explodable
      (vla-item (vla-get-blocks
                  (vla-get-activedocument (vlax-get-acad-object))
                )
                (cdr (assoc 2 (entget ss)))
      )
    )
    :vlax-false
)

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost