Jump to content
Developer Wiki and Function Reference Links ×

How to get parameter values from SDK objects


Sam Jones

Recommended Posts

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 by Sam Jones
Need to add code
Link to comment
  • Vectorworks, Inc Employee

@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);

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