×
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

NX 8.5 Fit without Zoom
2

NX 8.5 Fit without Zoom

NX 8.5 Fit without Zoom

(OP)
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.

RE: NX 8.5 Fit without Zoom

Hello,

Try View-Operation-Fit view to selection.

Thanks,
Mathi K

RE: NX 8.5 Fit without Zoom

(OP)
"Fit view to selection" also zooms. I need only "center"

RE: NX 8.5 Fit without Zoom

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.

RE: NX 8.5 Fit without Zoom

(OP)
@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.

RE: NX 8.5 Fit without Zoom

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



RE: NX 8.5 Fit without Zoom

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.

RE: NX 8.5 Fit without Zoom

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



RE: NX 8.5 Fit without Zoom

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

RE: NX 8.5 Fit without Zoom

voilà! Case closed!

Tomas

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