Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent part update when switching display part

Status
Not open for further replies.

MarcusMang

Automotive
Jul 17, 2015
3
Hello everyone!

First of all: Thank you for the great info provided in this forum - it has helped me many times!

I've currently got an issue I can't seem to figure out (and I'm absolutely confused by NX's behaviour in this case ^^):
In short: When I want to switch the displayed part via Window -> NewDisplayPart.prt, a (failing) update of the current part is attempted preventing me from switching to the other part.

Why this is relevant for me:
I have a relatively complex part (1200+ timestamps) of which the user needs to adjust some basic sketches to fit certain given constraints (e.g. the area of Sketch1 must be ~100mm²).
These adjustments are done via a set of expressions driving the sketches. The values of these expressions can be set using my program.
Now updating the full-blown model takes to long to be done in a timely matter (the idea is that the customer sees a "live preview" of the sketches (and resulting areas) while fiddling with the expressions).
To circumvent the long update cycle, my program loads a reduced part (<70 timestamps) containing only the relevant sketches and measurements and sets it at display part. Upon switching, the expressions' values are transferred from the full part to the reduced part. Now the user can change expressions via my tool and see a live preview. When the user presses ok, the expressions' values are re-transferred to the full part. The full part is not automatically updated after this process (since this may fail and the user wants control over the update process).

Now the above mentioned problem arises: If the user starts the program again and the program attempts to switch the DisplayPart (via [pre]Session.Parts.SetDisplayPart(reducedPart, True, True, Nothing)[/pre]) an update will be started on the current (full) part.
When this update fails, switching the display part is prevented. (I get the same behaviour when I try to do this manually via Window -> reducedPart.prt).

I tried all combinations of the various options to delay model updates to no avail :(
Is there something I can do to disable the part update when switching displayed parts?
Or maybe force switching the part even if the update fails?

I'm thankful for all your ideas/insights!


Kind regards
Marcus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor