Get view origin and transformation matrix

Get view origin and transformation matrix

Lalchetaketan022
Contributor Contributor
273 Views
3 Replies
Message 1 of 4

Get view origin and transformation matrix

Lalchetaketan022
Contributor
Contributor

Hi

 

Can I get view original and transformation matrix of view for all types of view? If yes, could anyone  help me with how?

0 Likes
274 Views
3 Replies
Replies (3)
Message 2 of 4

Michael.Navara
Advisor
Advisor

Can you be more specific?

What do you mean origin?

  • Position of view on the drawing sheet?
  • Position of model origin on the drawing sheet?
  • ...

What do you mean transformation (matrix)?

  • Transformation of view on the sheet?
  • Model transformation to the drawing view?
  • ...

View position on the sheet is available always.

In some cases the model origin position does not make sense. For example in breaked views. 

 

For individual "conversion" of point3d coordinates to popint2D coordinates in drawing view is useful DrawingView.ModelToDrawingViewSpace Method 

Message 3 of 4

WCrihfield
Mentor
Mentor

Hi @Lalchetaketan022.  I'm not 100% sure what you may mean by view origin, but the DrawingView object has a Camera property (returns a Camera object), which then has a ModelToViewTransformation property, which will return a Matrix object.  If by view origin, you mean the 2d point within the view where the model's origin point would be, I believe you could use the DrawingView.ModelToDrawingViewSpace method, then input the model's origin point (the first WorkPoint in the model) to generate that.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 4 of 4

Lalchetaketan022
Contributor
Contributor

Thanks @WCrihfield and @Michael.Navara 

 

Actually I am trying to understand about ModelToSheetTransform. Is it applicable to all view type like section view etc and any impact of break out ?

 

What these matrix represents ?

 

Many thanks .

0 Likes