Sam Jones 162 Posted May 4, 2020 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 Quote Share this post Link to post
PatW 18 Posted May 5, 2020 You could populate a recordfield with all the string (comma seperated) and acces it from outside. regards, Patrick Quote Share this post Link to post
Sam Jones 162 Posted May 5, 2020 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 ? Quote Share this post Link to post
LarryO 13 Posted May 7, 2020 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. Quote Share this post Link to post
Sam Jones 162 Posted May 8, 2020 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? Quote Share this post Link to post
JBenghiat 333 Posted May 12, 2020 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 Quote Share this post Link to post
C. Andrew Dunning 188 Posted August 20, 2020 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...) Quote Share this post Link to post
JBenghiat 333 Posted August 21, 2020 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. Quote Share this post Link to post