Jump to content

How to disable "allow exploding" while creating a block lisp?


Recommended Posts

Posted (edited)

is it possible to disable "Allow exploding" in this lisp?

 

(defun c:OB(/ ssblk)


; to create block BSO for deck door opening
(if (not (tblsearch "block" "BSO"))
  
  (progn
  (setq ssblk (ssadd))
     (command "_rectangle" (list -0.35 0.00 0.00)(list 0.35 0.70 0.00))
      (setq ssblk (ssadd (entlast) ssblk))
     (command "_Line" (list -0.35 0.00 0.00)(list 0.35 0.70 0.00)"")
      (setq ssblk (ssadd (entlast) ssblk))
     (command "_Line" (list -0.35 0.70 0.00)(list 0.35 0.00 0.00)"")
      (setq ssblk (ssadd (entlast) ssblk))
     (Command "CHPROP" ssblk "" "LA" "0" "")

     (command "-BLOCK" "BSO" (list 0 0 0) ssblk "")

  ) ;progn
) ;defun

  
(princ)
)

Edited by Tiger
added code-tags
Posted

if i'm correct:

...
(setq BLOCKS
 (vla-get-Blocks
   (vla-get-activedocument
     (vlax-get-acad-object)
   )
 )
 BLK (vla-Item BLOCKS "BSO")
)
(vla-put-explodable (vla-Item BLOCKS "BSO") :vlax-false)
...

kruuger

Posted

hi,

Thanks for your reply...

and it is not working their is one error message "error: no function definition: VLAX-GET-ACAD-OBJECT"

please solve this problem

thanks

bijoy.vm

Posted

thanks alanjt....its working...

(vl-load-com) was missing...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...