Sam Jones Posted November 18, 2020 Share Posted November 18, 2020 (edited) When I try and retrieve a value that is shown in the OIP for a BrxHoist object, VW hangs with beach ball of death. The command that it hangs on is: ok := GetLocalizedPluginParameter('BrxHoist', 'Load Trim', localName); The BrxObject parameter list is empty in the plug-in manager, seeming to indicate that it is an SDK object, but the OIP lists a "Load trim" parameter that has an edit field. If I cannot get the localized name is there a way to check of an object has a parameter list? The following code hangs: PROCEDURE GetLocalName; VAR localName1 : STRING; localName2 : STRING; ok : BOOLEAN; BEGIN ok := GetLocalizedPluginName('BrxHoist', localName1); AlrtDialog(concat('localName1 = ', localName1)); ok := GetLocalizedPluginParameter('BrxHoist', 'Load Trim', localName2); {Hangs on this call} AlrtDialog(concat('localName2 = ', localName2)); END; RUN(GetLocalName); Edited November 18, 2020 by Sam Jones Need to add code Quote Link to comment
Vectorworks, Inc Employee klinzey Posted November 19, 2020 Vectorworks, Inc Employee Share Posted November 19, 2020 @Sam Jones "Load Trim" is the localized name, the call should be ok := GetLocalizedPluginParameter('BrxHoist', 'LoadTrim', localName2); You can get the parameter values or record information form SDK objects the same way you get them form VS objects. Easiest way to see the parameters is using Debug List View or you can see the parameters if you make a worksheet that looks at the hoist. If you want to do it in code you would. NumFields (BrxHoist Record) For I := 1 to numfileds FieldName = GetField(BrxHoist Record,I) GetLocalizedPluginParameter('BrxHoist', 'FieldName', localName); 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.