Jump to content
archlink

Repeat custom-made command without re-clicking the command

Recommended Posts

Hi 

Does anyone use custom-made tool command?  For example a typical line,  we set thickness, colour etc. and make a custom-tool.

Now, in the macro,  how can we repeat the same command without re-clicking the command again?

 

This was not an issue in order Vectorworks.  Probably 2016 version but 2017, the macro for repeating the same command (until next tool is selected) didn't get recognized.   2018 and 2019 are the same.  Something was changed and I couldn't make the "repeat" happen again. 

So when I want to draw the same line which is set by the custom tool, I have to click it again and draw which is wasting the time. 

Please kindly help if you know the answer. 

 

Mike

Share this post


Link to post

Can you post or send me directly one of the commands and I can take a look and see if I can figure out why it is not repeating.

Share this post


Link to post

Hi Pat, 

I just realized that you have replied to my posting. 

 

Here is one of the custom command I made for 0.1mm line. 

Sorry, it became two piece photos. 

 

 

 

Regards,

 

Mike

Vectorworks 2019ScreenSnapz002.jpg

Vectorworks 2019ScreenSnapz001.jpg

Share this post


Link to post

If you change the CallTool command to SetTool, then the tool will remain active after the script ends and you should get what you need.

 

You probably also want to get rid of the PopAttrs (and the PushAttrs) otherwise the attributes will be set back to what they were before you ran the script.

Share this post


Link to post

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


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...