Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Front View and two projected views on a drawing, iLogic

4 REPLIES 4
Reply
Message 1 of 5
engilic
908 Views, 4 Replies

Front View and two projected views on a drawing, iLogic

Hi,

 

I am sure there is a post on how to make it but I cannot find it.

I think I know how to place Front View but do not know how to place its projections, exactly which ones I want.

 

My question is how to place Front View and two projected views on a drawing, right and above the Front one, guess Inventor will use the projection method specified for the drawing (first or third angle)?

 

Then I guess I can specify the scale, position, and all other parameters like View, Associativity, Sheet Metal View, Style, Display Options, ...

 

Have a lovely day.

Labels (3)
4 REPLIES 4
Message 2 of 5
dutt.thakar
in reply to: engilic

@engilic 

 

Check out this link and see if it helps.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-coding-to-create-automated-drawing/m-p/...

 

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 3 of 5
engilic
in reply to: engilic

Thank you @dutt.thakar ,

 

Did not have time to go through all posts you mention that are related to my question to find the code for placing Frint View and two projected views.

 

Is it possible to get here just a code for placing the Front view and two projected views (of course aligned to the Front one, same relations to the main view as you manually place them), one to the right, another above the main view.

 

Have a lovely day.

 

Message 4 of 5
dutt.thakar
in reply to: engilic

@engilic 

 

Created this code a long time back, please try and see if that works,

 

        Dim partDoc As PartDocument = ThisApplication.Documents.Open("C:\Vault\Designs\Sandbox\HolePlate.ipt", False)

		Dim tg As TransientGeometry = ThisApplication.TransientGeometry
		Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
		Dim oSheet As Sheet = oDoc.ActiveSheet
 		Dim frontView As DrawingView
        frontView = oSheet.DrawingViews.AddBaseView(partDoc, tg.CreatePoint2d(12, 15), 2, ViewOrientationTypeEnum.kRightViewOrientation, DrawingViewStyleEnum.kHiddenLineDrawingViewStyle)

        ' Create the top, right and iso views.
        Dim sideView1 As DrawingView
        sideView1 = oSheet.DrawingViews.AddProjectedView(frontView, tg.CreatePoint2d(24, 15), DrawingViewStyleEnum.kFromBaseDrawingViewStyle)
		
		 Dim topView1 As DrawingView
         topView1 = oSheet.DrawingViews.AddProjectedView(frontView,tg.CreatePoint2d(12, 30), DrawingViewStyleEnum.kFromBaseDrawingViewStyle)
If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 5 of 5
engilic
in reply to: dutt.thakar

Thank you @dutt.thakar ,

 

I Will check it and reply, hopefully soon.

 

Have a lovely day.

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

Post to forums  

Autodesk Design & Make Report