Skip to content

PV update using PNet #1

Open
Open
@hanseongji

Description

Hi Hyeonbeen,

Thank you for providing the great material on automating RD using Python.
I'm currently trying to move from C# ProcessNet to Python, and have a question regarding the necessity of the "model_document.UpdateDatabaseWindow()" method when the PV is changed.

In my experience, simply using the command "PV.Value = PVvalue" did not update the PV in the model.
In the RD GUI, when we implement a model, we press the "OK" or "Apply" button in the Parametric Value Tab after modifying some values.
This triggers an internal model update (redraw) process.

However, it appears that the update process is not explicitly performed when using ProcessNet.
When I was using PNet in C#, I preferred to use the model document updating or model redraw functions because of the reason.
I often encountered a similar behavior when following the code you provided (RunDOE_GUI).
It would be greatly appreciated if you could share your experience regarding this matter.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions