I’m new to VB and thought this would be a simple task but it’s not proving to be. I need to activate the second sheet of a drawing template after it has been opened by a macro that places views and a BOM on the front page and insert the model in the predefined views on the second page template. I know I can use Insermodelinpredefinedview and I’m pointing to the sheet to activatesheet (sheetname) with the name of the sheet, but it errors to “empty” on this line. Does anyone have any sample code of something close to this or suggestions?
When you are using InsertModelInPredefinedView, are you giving the model full path as the parameter? If not then do that and try again.
Here are two examples you can look at
API: How to load a reference model into a drawing view
API equivalent of "Make drawing from part/assembly"