Inventor Customization

New Member
Posts: 2
Registered: ‎01-11-2013
Message 1 of 3 (111 Views)

New Part Units

111 Views, 2 Replies
01-11-2013 08:37 AM

First day programing API for inventor, So Yes this a Noob Question

I using code similar to add a new part to an instance of Inventor, and it works OK. The problem is it is using the Metric Template instead of Imperial Template. I have check and confirmed my application preferences and they reflect "inches". Inve is the Variable name for my Inventor.Application. Thank You in advance

    Set Part = Inve.Documents.Add(kPartDocumentObject)

New Member
Posts: 2
Registered: ‎01-11-2013
Message 2 of 3 (108 Views)

Re: New Part Units

01-11-2013 08:48 AM in reply to: ped.watt

I have found a Solution by changing the code to:

Part = Inve.Documents.Add(kPartDocumentObject, "C:\Users\Public\Documents\Autodesk\Inventor 2013\Templates\Standard.ipt")

But is there  cleaner way of doing it?

ADN Support Specialist
Posts: 545
Registered: ‎03-26-2007
Message 3 of 3 (89 Views)

Re: New Part Units

01-16-2013 10:29 AM in reply to: ped.watt



You can use the Application.FileManager.GetTemplateFile to get the default template. 

Like in this blog post:



Adam Nagy
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor