dber Posted 20 hours ago Posted 20 hours ago Hi, I have a LISP code to help clean up some incoming files from Civils as we work on projects. I wanted to add to this code that I got, and was wondering if there are any lines of code that could make AutoCAD: 1. Change Allow Exploding to "Yes" for all blocks 2. Select all hatches in drawing and change Annotative to "No" I heard the commands can be limited, so just wondering if its possible and what it might look like. Thanks! Quote
troggarf Posted 1 hour ago Posted 1 hour ago Here is a quick find from Google for setting all blocks as explodable: ;; Set every block as explodable ;; http://forums.augi.com/showthread.php?33008-Allow-block-exploding&highlight=explodable&pp=10 ;; posted by whdjr (defun c:eb () (vl-load-com) (vlax-map-collection (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)) ) '(lambda (x) (and (vlax-property-available-p x 'explodable) (eq (vlax-get-property x 'explodable) :vlax-false) (not (vlax-put-property x 'explodable :vlax-true)) ) ) ) ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.