djcody Posted January 13 Share Posted January 13 I'm notating a drawing and bouncing back and forth between two specific Data Tag Styles. I'd like to script the process of selecting each of them so I can add the script to my workspace and associate a keyboard shortcut. If I right-click on the Data Tag Style in the Resource Manager, it activates the tool with that style active. This is what I'm trying to script. My searching has failed to show any example of anyone trying to do this before. Anyone have a suggestion as to how I'd approach it? I've gotten close by making a PIO using symbol(), but that seems to only work with, you know, a symbol. Quote Link to comment
LarryO Posted January 13 Share Posted January 13 You are going to have to focus on the tool's preferences which are likely stored in an attached data resource. Perhaps it is possible to pre-set a couple of styles (if they don't already exist in the drawing file), then swap the names in and out of a "style field" in that resource. Assuming a style field exists. Data Tag Style changes might just be an embedded procedure that changes all the data fields and is only accessible when the Data Tag Preferences window is active. Quote Link to comment
djcody Posted January 14 Author Share Posted January 14 Thanks Larry. I do have the two Data Tag styles I'm back and forth between in the drawing already. Not sure where to start poking based on your suggestion - "the tool's preferences which are likely stored in an attached data resource" Where can I find data resources attached to tools? Good idea about passing text to wherever-that-is in order to change the active Data Tag Style. I had looked at this bit of the screen too thinking it might lead to something - My two styles pop up in that pull-down. If I could work out how to automate selecting that, I'd be set! CallToolByName() looks like a close Vectorscript function, but does not give me the option to pass along any tool preferences. Continuing to dig around old posts and see if anyone else has tried similar... Quote Link to comment
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.