In this case I started with opening a STEP file of the 3D folded sheet metal. I vaguely remember now seeing this before, but could not recall it when someone asked about it the other day, that Inventor can generate flat pattern for any folded sheet metal model, without having to first create all the related sheet metal features (bend, flange, etc) by hand. Set doc = (kDrawingDocumentObject, templatePath, True) ' Migrate drawing template before using it If inventorVersion.Major > templateVersion.Major Then Set inventorVersion = ThisApplication.SoftwareVersion If it has not been migrated yet then you can just open, save and close it before using it as a template.Ĭonst templatePath = "C:\Temp\Template2021\Standard.idw" You can check programmatically the Inventor version the drawing was last saved in. using Task Scheduler, or just-in-time as well - here's how. Just to be on the safe side, the best thing is to migrate an older document before trying to use it as a template - especially a drawing template. It does not say if it can be used as a template or not. Inventor documents have a property called NeedsMigrating, but it only tells you if the document needs to be saved before modifying its content. You can find more information about it here. That's what document migration is: opening an old document and saving it in the latest version of the software.
Inventor can open older documents created in previous versions of the software and then save them. Especially in the case of drawing templates. There is a difference between using a document as a template or just simply opening it.