ybx Posted January 9, 2015 Share Posted January 9, 2015 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 Quote Link to comment Share on other sites More sharing options...
Nardino Posted January 9, 2015 Share Posted January 9, 2015 I thnink that if you add the * in front of the block name, it will be inserted exploded. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 9, 2015 Share Posted January 9, 2015 Welcome to CADTutor . Just add an asterisk in front of the Block name . Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 9, 2015 Share Posted January 9, 2015 Opps , Nardino beat me to it Quote Link to comment Share on other sites More sharing options...
Nardino Posted January 9, 2015 Share Posted January 9, 2015 we think alike Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 9, 2015 Share Posted January 9, 2015 we think alike .......... Quote Link to comment Share on other sites More sharing options...
sergiu_ciuhnenco Posted January 10, 2015 Share Posted January 10, 2015 There also another way , put the block in a tool palette , right click on it go on the properties, you have there few option to explode it , to explode and rotate it , very usefful !!! https://www.dropbox.com/s/ej3o0sapy0zjuwy/2.jpg?dl=0 Quote Link to comment Share on other sites More sharing options...
ybx Posted January 10, 2015 Author Share Posted January 10, 2015 .......... 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 Quote Link to comment Share on other sites More sharing options...
ybx Posted January 10, 2015 Author Share Posted January 10, 2015 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 Quote Link to comment Share on other sites More sharing options...
dbroada Posted January 10, 2015 Share Posted January 10, 2015 if you insert an exploded block you do not need the "y" scale factor so remove that and all should be fine. Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 10, 2015 Share Posted January 10, 2015 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) ) Quote Link to comment Share on other sites More sharing options...
ybx Posted January 10, 2015 Author Share Posted January 10, 2015 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 Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 10, 2015 Share Posted January 10, 2015 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) ) Quote Link to comment Share on other sites More sharing options...
ybx Posted January 10, 2015 Author Share Posted January 10, 2015 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... Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 10, 2015 Share Posted January 10, 2015 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 ? Quote Link to comment Share on other sites More sharing options...
ybx Posted January 10, 2015 Author Share Posted January 10, 2015 Do you want to insert block to 0,0 point ? yes...i want to insert block to 0,0 point pls... thanks Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 10, 2015 Share Posted January 10, 2015 OK replace pause with "0,0" Quote Link to comment Share on other sites More sharing options...
ybx Posted January 11, 2015 Author Share Posted January 11, 2015 OK replace pause with "0,0" can u help me to add this code (I don't know where I will add this) can u pls thanks Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 11, 2015 Share Posted January 11, 2015 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) ) Quote Link to comment Share on other sites More sharing options...
ybx Posted January 11, 2015 Author Share Posted January 11, 2015 (defun C:Insb () (command "_.insert" "vision" "0,0" "" "" "" "_.explode" "L") (princ) ) YES....THAT'S IT... Thanks a lot..... Quote Link to comment Share on other sites More sharing options...
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.