Showing results for 
Search instead for 
Do you mean 
Reply

Get Co-ordinates of Draftingview without expanding it

 Hi,

 

I am able to get Co-ordinates with reference to drawing.

 

For creation of grid lines i need to start it from origin of the view. 

 

I am stuck in how to get origin without expanding view?

 

 Please see the code in attached file and correct me.

2 REPLIES

Re: Get Co-ordinates of Draftingview without expanding it

Try this, You will get the origin of all the views

For Each s As View In workPart.Views
If TypeOf (s) Is Drawings.DraftingView Then
ElseIf TypeOf (s) Is ModelingView Then
Else
MsgBox(s.AbsoluteOrigin.X & vbNewLine & s.AbsoluteOrigin.Y & vbNewLine & s.AbsoluteOrigin.Z)
End If

Next

Re: Get Co-ordinates of Draftingview without expanding it

Hi,

Thanks.

 

But I got it work by using .MapmodeltoDrawing.