YZ Posted September 8, 2015 Share 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 Link to comment Share on other sites More sharing options...
steven-g Posted September 8, 2015 Share 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 Link to comment Share on other sites More sharing options...
steven-g Posted September 8, 2015 Share 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 Link to comment Share on other sites More sharing options...
JGA Posted September 9, 2015 Share Posted September 9, 2015 Try creating the block using the -BLOCK command, then wblocking it out to the new file. Quote Link to comment Share on other sites More sharing options...
rkent Posted September 9, 2015 Share Posted September 9, 2015 Try creating the block using the -BLOCK command, then wblocking it out to the new file. +1 +1 Quote Link to comment Share on other sites More sharing options...
YZ Posted September 10, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
dbroada Posted September 10, 2015 Share 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 Link to comment Share on other sites More sharing options...
tombu Posted September 11, 2015 Share 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 Link to comment Share on other sites More sharing options...
YZ Posted October 15, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
JGA Posted October 19, 2015 Share Posted October 19, 2015 Good stuff, thanks for sharing your routine. 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.