Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Synchronize viewports NX 8.5

Status
Not open for further replies.

cowski

Mechanical
Apr 23, 2000
8,210
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
 
Replies continue below

Recommended for you

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
 
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:
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
 
Now I'm curious how I'd synchronize the views in interactive NX. The help file says:
NX help said:
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
 
Nevermind, I found it.

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

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor