Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

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

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
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
 
Replies continue below

Recommended for you

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.
 
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
 
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
 
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"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor