Jump to content

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


bijoyvm

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...