Reply

Drawing View using Coordinate System

Hello All,

 

Is there a way to add Drawing View for a part file using the Coordinate System of the Part file?

 

Like if the part file has a coordinate system as "CoordinateSystem_1" then place the top View of this coordinate system as Drawing View.

 

Are there any ways to do this?

 

Please suggest

2 REPLIES

Re: Drawing View using Coordinate System

There is no direct API to set the coordinate system on a DrawingView, but I would do the following:

1) Create a normal DrawingView from the part
2) Retrieve the orientation of the coordinate system
3) SetViewOrientation of the drawing view

Re: Drawing View using Coordinate System

Hello Martin,

 

Thank you for your suggestion.

Can you provide a sample program for GetOrientation method().

 

I declared the Offset and Rotation variables as Object. But it returns nothing.

 

Can you provide a sample code?

 

Thanks 

Shruthi M