Jump to content

nsert a block and explode


ybx

Recommended Posts

dear friends...

i need ur help

i need to insert a block in several drawings layout and need to explode same time

 

am using this code to insert block (vision is block name)

can sombody to add with this to explode

 

(defun c:Insb ()

(command "._-insert" "vision" pause 1 1 0)

(princ))

 

thanks

Link to comment
Share on other sites

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • ybx

    9

  • mostafa badran

    6

  • Tharwat

    3

  • Nardino

    2

Top Posters In This Topic

:thumbsup:

 

..........

 

hi guys...thanks ur comments

 

I tried as per ur comments (* in front of the block name)

it is working but after exploding its position and rotation angle is changed..

how can i overcome this...

 

thanks

Link to comment
Share on other sites

hi guys...thanks ur comments

 

I tried as per ur comments (* in front of the block name)

it is working but after exploding its position and rotation angle is changed..

how can i overcome this...

 

thanks

Link to comment
Share on other sites

dear friends...

i need ur help

i need to insert a block in several drawings layout and need to explode same time

 

am using this code to insert block (vision is block name)

can sombody to add with this to explode

 

(defun c:Insb ()

(command "._-insert" "vision" pause 1 1 0)

(princ))

 

thanks

Welcome to cadtutor try this.

(defun C:Insb ()
 (command "_.insert" "vision" pause "" "" pause "_.explode" "L")
 (princ)
)

Link to comment
Share on other sites

Welcome to cadtutor try this.

(defun C:Insb ()
 (command "_.insert" "vision" pause "" "" pause "_.explode" "L")
 (princ)
)

 

thanks man..

i tried this its ok (only the problem is it is asking rotation point i dont know how to add that code)

can u pls correct it for me...

thanks

Link to comment
Share on other sites

thanks man..

i tried this its ok (only the problem is it is asking rotation point i dont know how to add that code)

can u pls correct it for me...

thanks

OK ;).

 

(defun C:Insb ()
 (command "_.insert" "vision" pause "" "" 0 "_.explode" "L")
 (princ)
)

Link to comment
Share on other sites

OK ;).

 

(defun C:Insb ()
 (command "_.insert" "vision" pause "" "" 0 "_.explode" "L")
 (princ)
)

 

if am not irritating u.... pls add base point (base point 0,0) (now its asking base point)

thanks ur patience...

Link to comment
Share on other sites

if am not irritating u.... pls add base point (base point 0,0) (now its asking base point)

thanks ur patience...

Do you want to insert block to 0,0 point ?

Link to comment
Share on other sites

can u help me to add this code (I don't know where I will add this)

 

 

can u pls

thanks

 
(defun C:Insb ()
 (command "_.insert" "vision" "0,0" "" ""  "" "_.explode" "L")
 (princ)
)

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