Jump to content

Updating Plugin Pop-Up Choices


Recommended Posts

It would be possible to do this with a script, but would probably be slow and difficult to get right.

 

Since you are on a Mac, I would look at getting BBEdit and using the multi-file find and replace to do the changes that way. You will probably want to restructure your scripts to use {$INCLUDE filename} structure so that most/all of the script is stored in a plain text file rather than being stored only in the VW document.

 

If you do this you might be better off converting the scripts to Menu Item Plugin Objects so you only have to update them once rather than in every document. You will probably also need to turn on the program switch to compile the script on every run.

Link to comment

Without seeing the code, it is hard to say.  If they are all similar and you want the same topdown list, you can probably edit each script to use a single include file that has just that portion of the code.

 

Then you would only need to edit that one include file and recompile each script.

 

If they are PIOs and are used multiple times in a drawing, you probably don't want to have the Alway Compile setting turned on, so you would need to open each in the Plugin Editor. I don't know of any want to automate that step.

 

@JBenghiat, @MullinRJ, @Sam Jones  Any of you have any suggestions?

Link to comment

If you’re just looking to modify parameter options, there’s not really a way to do this. 

 

If your script is event enabled, you can use the WidgetPrep event to fill menus based on code as opposed to the predefined list. In your case, you can read values from a file. If you’re not currently using event enabled scripts, you are opening a proverbial can of worms, but you can greatly expand your available functionality. I believe the archive has some posts to get you started. 

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