Jump to content
Sam Jones

PIO String Values

Recommended Posts

Is there a way to collect the plug-in string values of a plug-in object from outside the plug-in.  Inside the plug-in, the PIO collects string values wit GetPlugInString(index), but that will not work outside the PIO code.  I have a command that would like to collect some of the plug-in string values of 4 different PIOs  is this possible.  If so, how?

 

Yet again TIA

 

Sam

 

Share this post


Link to post

You could populate a recordfield with all the string (comma seperated) and acces it from outside.

 

regards,

Patrick

Share this post


Link to post

No.  I need to harvest the values stored in a PIO's plug-in strings.  The values are not known.  populating the plug-in strings from a shared source outside the PIO and the command is not possible.  So, the question remains is there a way to obtain the values of the plug-in strings of an existing PIO ?

Share this post


Link to post

If I'm not mistaken the string values associated with a plugin are similar to the storage of default parameter values. They are stored in your application's workspace/ menu environment not the drawing file. This view is reinforced by the fact that there is no means to change the value from within plugin. While they could change from one Vectorworks installation to another that would be unlikely as the person who wrote the script would have to allow for every different variation. Such as having text strings for different language installations. The local VW reseller would be changing them in that instance before selling the regional version of VW to you.

Share this post


Link to post

 Every user has access to a custom or third party PIO's plug-in strings via the plug-in manager.  Only the Built-in plug-ins require the local distributor to localize PIO text.  So.., does a VS command have any access to the Plug-in String values entered for plug-ins that are not part of the VS command wanting the values.

VS command "A" wants to make a list of PIO "B"s plug in strings for display or any number of other purposes.  Possible?

Share this post


Link to post

No, it's not possible. Strings embedded in the PIO are only accessible by that PIO.

 

You can, however, have a PIO access strings in a .vwr file. You can share resources or easily edit strings via a text editor and copy and paste to make sure they are in sync. https://developer.vectorworks.net/index.php/Vectorworks_VWR_Resources

https://developer.vectorworks.net/index.php/VS:GetVWRString

Share this post


Link to post

Question:  If a VWR file needs to be stored in a folder other than "Plug-ins," what is the correct path syntax to use with GetVWRString?

 

(The WIKI page makes reference to the path but doesn't provide this info...)

Share this post


Link to post

I don’t think you can.  The vwr load from the plug-ins folders and the application resources. The path is for finding the resource inside the vwr. 

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