Jump to content

Set callout boxs and text to automaticly go into class 'text'


Recommended Posts

  • 3 weeks later...

A vectorscript tool to improve the text tool.

Create the tool's script; insert it into your tool workspace; remove the short cut from NNA's text tool then apply it to the improved text tool. Disclaimer: I've not tried or debugged this, it may flop or not produce the desired results.

I'm thinking something like this.

Larry

PROCEDURE ImprovedText;

VAR

PopClass:String;

BEGIN

PopClass:=ActiveClass;

NameClass('text'); {this also creates a class if it doesn't yet exist. Note: max 20 characters.}

CallTool(-200); {-200 is the VWorks text tool}

{this is where the script might fail. It may not know when the user is finished with the text tool, not proceeding onto reseting the active class}

NameClass(PopClass);

END;

RUN(ImprovedText);

Link to comment

The stuff between the curly brackets {stuff} is ignored by VW when running the script. Paired curly brackets are simply a means to add notes anywhere into the script, usually to leave yourself clues as to what your script is doing when you look at it weeks later and say what the heck did I do here. :-)

The script above might not stop for the user to utilize the text tool before resetting the class back to the initial active class.

Larry

Link to comment

You can set up the Tool, Class, text settings and so on, then use the Custom Tool/Attribute command from the Tools menu. This command will create the script for you, so that you do not need to learn vectorscript. You can use this command to store snap settings, pen colors and line weights, etc. It's really useful. I'm covering this tool in july in online webinars.

Link to comment

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.

×
×
  • Create New...