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
NX 8.5





RE: Synchronize viewports NX 8.5
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
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 ModuleRE: Synchronize viewports NX 8.5
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
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
One of the views was slightly out of the orthogonal position which disabled the synchronize views option.
www.nxjournaling.com