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: 

Set IDW file "Base View" via a macro

1 REPLY 1
Reply
Message 1 of 2
isocam
357 Views, 1 Reply

Set IDW file "Base View" via a macro

Can anybody help?

 

I need, using a macro, the ability to pre set the file that I am going to use as a "Base View" on a IDW file.

 

Say I call the ipt file "FRED.IPT", when I run the macro, it opens a new clean idw sheet and pre-sets the "Base View" to "FRED.IPT".

 

or

 

Automatically open a clean idw sheet and place the file "FRED.IPT" on the sheet, automatically.

 

Is this possible?

 

Many thanks in advance!!!

 

IsoCAM

1 REPLY 1
Message 2 of 2
Vladimir.Ananyev
in reply to: isocam

I believe you should try  DrawingViews.AddBaseView method to create base view for the given model document

DrawingViews.AddBaseView(

   Model As Document,

   Position As Point2d,

   Scale As Double,

   ViewOrientation As ViewOrientationTypeEnum,

   ViewStyle As DrawingViewStyleEnum,

   [ModelViewName] As String,

   [ArbitraryCamera] As Variant,

   [AdditionalOptions] As Variant ) As DrawingView

 

This method is illustrated by “Create base view with representations” code sample in the API Help. 


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report