×
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

Synchronize viewports NX 8.5

Synchronize viewports NX 8.5

Synchronize viewports NX 8.5

(OP)
In the simulation app you can load multiple result files and synchronize the views so that you are always looking at both result sets from the same camera angle (i.e. any view manipulations [zoom, translate, rotate] happen in both viewports). I'm currently using Model Compare to verify the differences between 2 versions of a part and similar functionality would be most welcome here. I don't see any such option in the model compare dialog, but perhaps it is possible to synchronize 2 views in a given layout?

NX 8.5

www.nxjournaling.com

RE: Synchronize viewports NX 8.5

Hi Cowski,

In a multi-view layout (other than the model compare context) the following will work and it may be the basis for a journal that could execute while in model compare.

(tested in a two view layout (OOTB L2)

In the "source" view (as work view) in the layout set the wcs to current view, save a csys based on the wcs.
In the "target" view (as work view) - "View, Operation, Orient, (inferred), select the saved csys"

Naming the saved csys object would make selection easier. And adding a preserve the initial wcs via csys before the initial reorient in the source view would allow the wcs to be reinstated after reorienting the target view (and then "housekeeping" on the "helper" csys objects...)

(The Grip command Map (view matrix to view matrix) is what caused me to test this approach)

HTH, Joe

RE: Synchronize viewports NX 8.5

Cowski,

I was presuming that the model compare views were intentionally independently oriented and that this "reorient to match" was needed because the MB3 view popup "synchronize views" toggle requires a movement of the view orientation to begin the linked rotation and apples the same change to both views but does not address the difference in starting orientations.

If preserving the existing view orientation is not important and getting concurrent view dynamics from the same orientation is the goal then would an "orient view" in each of the model compare windows (to the same canned view) followed by toggling the "synchronized views" on work?

Here's a proof of concept that runs in model compare. The view names "BEFORE" and "AFTER" are the names of the sample parts being compared.

Regards, Joe

CODE --> VB

Option Strict Off
Imports System
Imports NXOpen

Module NXJournal
Sub Main (ByVal args() As String) 

Dim theSession As NXOpen.Session = NXOpen.Session.GetSession()
Dim workPart As NXOpen.Part = theSession.Parts.Work
Dim lw As ListingWindow = theSession.ListingWindow
lw.Open()

Dim displayPart As NXOpen.Part = theSession.Parts.Display
Dim modelingView1a As NXOpen.ModelingView = CType(workPart.ModelingViews.FindObject("AFTER"), NXOpen.ModelingView)
Dim modelingView1b As NXOpen.ModelingView = CType(workPart.ModelingViews.FindObject("BEFORE"), NXOpen.ModelingView)
lw.Writeline(modelingview1a.Matrix.ToString)
modelingView1b.Orient(modelingview1a.Matrix)

modelingView1a.SyncViews = True

End Sub
End Module 

RE: Synchronize viewports NX 8.5

(OP)
Joe,

Thanks, works great in NX 9. Looks like we can take advantage of this when we upgrade...

www.nxjournaling.com

RE: Synchronize viewports NX 8.5

(OP)
Now I'm curious how I'd synchronize the views in interactive NX. The help file says:

Quote (NX help)


Prerequisite: The part must be in a multiple view layout.

Graphics window: Right-click in the background of the graphics window and choose Synchronize Views.

Sounds easy enough. I opened a part, changed to the L2 layout, but when I right click in the view background there is no synchronize views option. Any ideas?

NX 9.0.2.5

www.nxjournaling.com

RE: Synchronize viewports NX 8.5

(OP)
Nevermind, I found it.

One of the views was slightly out of the orthogonal position which disabled the synchronize views option.

www.nxjournaling.com

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