How to access detail drawing view by name?

How to access detail drawing view by name?

Anonymous
Not applicable
885 Views
1 Reply
Message 1 of 2

How to access detail drawing view by name?

Anonymous
Not applicable

Hi all,

I'm working on an automated drawing project now.

I would like to change the scale of detail view B (In the picture 5:1 scale) in order to show the component in a proper size depending on the size of diameter. Is there any way to access detail drawing view by name? I tried to check some API sample code but there is only way to create a new detail view ( AddDetailView method) and it even goes to the original base view which is outside of the drawing frame... I could manage to change the scale A-A section view because it was easy to access to the base drawing view (the code something like below).

 

Dim oDoc As Inventor.DrawingDocument

Dim oViewA As DrawingView
oViewA = oDoc.ActiveSheet.DrawingViews.Item(1)
oViewA.[Scale] = 0.65

 

But I don't know how to access to detail view B which is a child of child (section A) of the base view. Can anyone help? Thanks in advance!

Untitled.png

0 Likes
Accepted solutions (1)
886 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

See @ckeveryga 's solution on your other post.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)