×
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

What is the difference between the View-Port Center and the Origin in case of a drafting view ?

What is the difference between the View-Port Center and the Origin in case of a drafting view ?

What is the difference between the View-Port Center and the Origin in case of a drafting view ?

(OP)
Hi Everyone ,

Can someone explain me what is the difference between the View-Port Center and the Origin in case of a drafting view ?
Also how can we calculate the origin of a drafting view mathematicaly ?
Any help in this regard will be highly appreciated.

Regards,
Amitabh

RE: What is the difference between the View-Port Center and the Origin in case of a drafting view ?

Not sure what you're referring to when you say "View-Port Center" as I can't find a single place where that term is used in the NX Help files. Could you please clarify or point out where you found this reference?

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

To an Engineer, the glass is twice as big as it needs to be.

RE: What is the difference between the View-Port Center and the Origin in case of a drafting view ?

(OP)
John ,

ViewPort center is used to position views while doing it using NXOpen.It refers to the exact center of the view rectangle.
Hope that clarifies the query.
What i am unable to judge is what is the view origin ? On plotting these points on the drawing sheet , the origin is always a little offset from the viewport center.
Can you apprise me how the origin of a view is determined ?

Regards,
Amitabh

RE: What is the difference between the View-Port Center and the Origin in case of a drafting view ?

I think this is what you are after.

CODE

Function GetViewCenter(ByVal aView As View) As Point3d
Dim Loc As Point3d = aView.Origin
Dim c() As Double = {-Loc.X, -Loc.Y, -Loc.Z}
Dim vmx As Matrix3x3 = aView.Matrix
Dim vw() As Double = {vmx.Xx, vmx.Xy, vmx.Xz, vmx.Yx, vmx.Yy, vmx.Yz, vmx.Zx, vmx.Zy, vmx.Zz}
theUFSession.Mtx3.VecMultiplyT(c, vw, c)
GetViewCenter = New Point3d(c(0), c(1), c(2))
End Function 

Suresh
www.technisites.com.au

RE: What is the difference between the View-Port Center and the Origin in case of a drafting view ?

(OP)
No Suresh , i am already aware of calculating the view port center.
All i need is the understanding for "How NX computes the View Origin"?

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