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!

NX 8.5 Fit without Zoom 2

Status
Not open for further replies.

t0lga

Mechanical
Sep 1, 2014
11
DE
I have an assy including 3 parts , the difference is only length.

When i click "fit" in assy 3 of them "on" , the parts centered and fitted to the screen.

I turn off the other parts leaving the smallest part, then i click "fit" , NX centers and zooms to the part.

I only want centering option. I export images of the parts, if i do it like that. Smallest parts seems to be the biggest one because of zooming option.
 
Replies continue below

Recommended for you

"Fit view to selection" also zooms. I need only "center"
 
Try...

View -> Operation -> Origin...

...and then select a point-of-interest that you would like the image to be centered-on.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
@JohnRBaker Thanks for useful tip

Indeed it helped me but it is not what i want. I wanted one click to fit the part to center of the screen without zooming.

I used "pan" to move parts with same zooming % but i couldn't place them at the center of the screen. With your tip i can place origin at the center of the parts (not screen) but it is useful.
 
You could probably do a little journal, maybe some programming help is needed, which :
1) View - Operation - Zoom... Copy the zoom factor ( the value) Or use some other command which records the zoom factor)
2) Fit the view.
3) View - Operation - Zoom... Paste the last zoom factor value.


Regards,
Tomas



 
You could create a Journal that captured my suggested approach so that it could be reduced to a single gesture, but unfortunately using Tomas' idea of journalizing the older Zoom dialog is not supported.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I tried the journal idea i mentioned above, it does not capture the existing zoom but when i in step 3 set a zoom factor it does.
So i guess that one can , by manual programming , read the current zoom , fit, and set to the previous zoom factor. But as John notes, the older zoom dialog doesn't "respond" to the Journal.


' NX 8.5.3.3
' Journal created by Tomas on Fri Jan 30 10:11:38 2015 W. Europe Standard Time
'
Option Strict Off
Imports System
Imports NXOpen

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

Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work

Dim displayPart As Part = theSession.Parts.Display

' ----------------------------------------------
' Menu: View->Operation->Zoom...
' ----------------------------------------------
' ----------------------------------------------
' Menu: Fit
' ----------------------------------------------
workPart.ModelingViews.WorkView.Fit()

' ----------------------------------------------
' Menu: View->Operation->Zoom...
' ----------------------------------------------
workPart.ModelingViews.WorkView.SetScale(1.0087213953075)

' ----------------------------------------------
' Menu: Tools->Journal->Stop Recording
' ----------------------------------------------

End Sub
End Module





Regards
Tomas



 
Building on Toost's idea:

Code:
Option Strict Off
Imports System
Imports NXOpen

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

Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work
Dim displayPart As Part = theSession.Parts.Display

dim currentScale as double = workpart.ModelingViews.WorkView.Scale
workPart.ModelingViews.WorkView.Fit()
workPart.ModelingViews.WorkView.SetScale(currentScale)

End Sub
End Module

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

Part and Inventory Search

Sponsor

Back
Top