Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Drawing: section view - how to find the section line in window

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Jakob_Hamburg
241 Views, 3 Replies

Drawing: section view - how to find the section line in window

Hi everyone,

 

I have quite big drawings with many section view and sometimes the drafter has not made the section lines easy to spot for the drawing reviewer/reader.

 

Is there a way in Inventor to find the location of the section view from the section view as a basis.

I mean when I am looking at section view "A-A" I would like to zoom to the section line (means the area of the drawing where the section view was taken from)

3 REPLIES 3
Message 2 of 4

Does this require an iLogic rule to be accomplished?

Message 3 of 4

Hi, yes, you need iLogic rule.

Try this:

Sub main()
	Dim oDDoc As DrawingDocument
    Dim OSelObj As Object
    Dim cam As Camera
    Dim oTg As TransientGeometry
    oTg = ThisApplication.TransientGeometry
    oDDoc = ThisApplication.ActiveDocument
    OSelObj = ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Pick ViewPort with Section/Detail View ...")
    cam = ThisApplication.ActiveView.Camera
    cam.Target = oTg.CreatePoint(OSelObj.ParentView.Center.X, OSelObj.ParentView.Center.Y, 0)
	cam.Eye = oTg.CreatePoint(OSelObj.ParentView.Center.X, OSelObj.ParentView.Center.Y, 20)
	Call cam.ApplyWithoutTransition
End Sub

Do you find the posts helpful? "LIKE" these posts! | Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням!
Have your question been answered successfully? Click "ACCEPT SOLUTION" button. | На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ"

Олександр Черніков / Alexander Chernikov

EESignature

Facebook | LinkedIn

.


Message 4 of 4

Thank you, Alexander. It works fine.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report