Jump to content
Sign in to follow this  
John Gr

GetPluginChoiceIndex

Recommended Posts

Can you use 'GetPluginChoiceIndex ' within the same plugin to retrieve a selection made from the OIP.

If so could you show me an example?

Does anybody know if you can set choices for a pop up menu from within the plugin. ie. use an external text file to setup choices.

JOHN GREANEY

[Confused]john@JGDS.co.nz

Share this post


Link to post

I'm not sure about your first question.

You can change OIP values from within a PIO, but the code has to finish executing to see its effect.

When the PIO code starts, the OIP values are copied to memory and essentially become constants for that iteration of the code. New values can be written to the record where the OIP stores information, but they will not be reflected in the OIP window until after the script stops. Depending on how you write your script, this may or may not be an issue.

I played for a day with a script that wrote data to the OIP until I figured out the interaction and the sequence of events. I was able to get what I wanted, but it was anything but easy.

To write to a PopUp menu in the OIP, you just need to set it to one of the choices already in the menu.

Use:

SetRField(objHand, objName, 'PopUpFieldName', 'yourPopUpValue');

to set the value.

You can get the objHand and objName values from:

GetCustomObjectInfo(objName, objHand, recHand, wallHand);

"objName" is the PIO name AND the name of the record that defines the PIO values, as you might hope it would be.

I'd write more, but I'd only be guessing at what I think you might want to know. If you can be a little more specific, I, or someone else on this board can tell you a whole lot more.

HTH,

Raymond

[ 10-09-2004, 03:06 AM: Message edited by: MullinRJ ]

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.

Sign in to follow this  

 

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