YZ Posted September 8, 2015 Posted September 8, 2015 Has anyone ever had success using the command lind version of WBLOCK, -WBLOCK when calling it from a macro. First I have to switch FileDia to 0, no problem. I then want to nominate a path and file name, no problem. I nominate the base point using the @ command to call the last coordinates clicked. But then the object disappears! What I really want is for that object to convert to a block (which the dialog box allows for) but the -WBLOCK command is not so straight forward. Quote
steven-g Posted September 8, 2015 Posted September 8, 2015 I am guessing this is for a macro, couldn't you add an insert at the end (you already have the path and filename) Quote
steven-g Posted September 8, 2015 Posted September 8, 2015 Looking at the help file, that is recognised behaviour for the -wblock command, the objects can be reinstated with the oops command, but not as a block, I think an aditional insert may be the only answer! Quote
JGA Posted September 9, 2015 Posted September 9, 2015 Try creating the block using the -BLOCK command, then wblocking it out to the new file. Quote
rkent Posted September 9, 2015 Posted September 9, 2015 Try creating the block using the -BLOCK command, then wblocking it out to the new file. +1 +1 Quote
YZ Posted September 10, 2015 Author Posted September 10, 2015 steven-g, yes it is for a macro. I cannot seem to insert it back in because the new block does not show up in the insert block definition list. Although, maybe I can call it directly from its file location. Hmmm, I'll check it out. I'll also check out JGA's solution, it is not immediately clear to me what it is getting at, so I am eager to learn. Thanks for the input! I'll let you know how it goes. Quote
dbroada Posted September 10, 2015 Posted September 10, 2015 my guess is that your insert point of 0,0,0 is a long way from the geometry and it has disappeared off screen. Quote
tombu Posted September 11, 2015 Posted September 11, 2015 my guess is that your insert point of 0,0,0 is a long way from the geometry and it has disappeared off screen. For that reason I generally use copy with basepoint using the point I want for the block's insert point, then paste it into a new drawing @ 0,0 then saving the drawing rather than using block commands. Quote
YZ Posted October 15, 2015 Author Posted October 15, 2015 That did it JGA. I still don't quite understand the difference between the 2 commands -WBLOCLK and -BLOCK. However, I can get a working tool with -BLOCK! SetEnv;BlockName;\FileDia;0;-Block;$M=$(GetEnv,BlockName);@;P;;-Insert;$M=$(GetEnv,BlockName);@;1;1;0; Quote
JGA Posted October 19, 2015 Posted October 19, 2015 Good stuff, thanks for sharing your routine. 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.