×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Prevent part update when switching display part

Prevent part update when switching display part

Prevent part update when switching display part

(OP)
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
Session.Parts.SetDisplayPart(reducedPart, True, True, Nothing) 
) 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources