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

Modifying block contents

1 REPLY 1
Reply
Message 1 of 2
Anonymous
156 Views, 1 Reply

Modifying block contents

Forgive me if I am double posting but I am having trouble getting my posts to appear on the newsgroup. This is a repost of a earlier response. "TCEBobThis routine will change all of the entities in a block to be on layer "0" and linetype continuous, and color 256 Peter Jamtgaard (defun C:BLAY () (if (setq ESEL (entsel "\nSelect Block: ")) (progn (setq EOBJ (vlax-ename->vla-object (car ESEL))) (if (wcmatch (vla-get-objectname EOBJ) "AcDbBlockReference,AcDbMInsertBlock" ) (vlax-for OBJ (vla-item (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object) ) ) (vla-get-name EOBJ) ) (vla-put-layer OBJ "0") (vla-put-linetype OBJ "continuous") (vla-put-color OBJ 256) ) ) ) ) (vl-cmdf "regen") )
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Peter, thanks for your effort! I'll give your code a try later. rs

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

Post to forums  

Autodesk Design & Make Report

”Boost