Jump to content

Update PIO when attached record is changed (Python)


Recommended Posts

  • 1 month later...

Hi Pat, Thank you for the tip and apologies for the late reply.

 

I see how that would work in some scenarios but perhaps not the one I'm in:

The record is being updated manually not via a script.

 

If you manually change a record field from the OIP this does not seem to force a reset of the parent plug-in-object. This is the functionality I was aiming for: Essentially using record fields as data-entry boxes for a plug-in-object rather than having to add more editable parameters to the object definition.

 

Might be the functionality is just not supported by the API?

 

 

Link to comment

Is this a custom PIO?  If so you could add something like:

 

ResetObject(GetParent(HandleToMe)); to to code.

 

You would use GetCustomObjectInfo to get HandleToMe.

 

If it is just nested standard PIOs, then the only options would be an external script you would run to force a reset of selected objects or the Tools:Utilities:Reset All Plug-ins command from the menu.

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