Share

DesignProjectManager Object


Description

The DesignProjectManager object provides access to project files related functionality in Inventor.

Methods

Name Description
AddOptionsButton Method that adds an options button to the Projects dialog. The returned button object can be used to receive an OnClick event fired when the user clicks the option button.
IsFileInActiveProject Method that returns whether the given file is located within the active project using the resolution rules of the project, and additionally returns the path type (library, workspace, workgroup) and its name.
ResolveFile Method that runs the file resolver from the source path and attempts to find the destination file name, in the active project. The full file name of the resolved file is returned. A null string is returned if no file was resolved to.

Properties

Name Description
ActiveDesignProject Property that returns the currently active design project. Use DesignProject.Activate method to activate a project.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
DesignProjects Property that returns the DesignProjects collection object containing all the projects.
Parent Property that returns the parent Application or ApprenticeServerComponent object.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

Application.DesignProjectManager, ApprenticeServer.DesignProjectManager, ApprenticeServerComponent.DesignProjectManager, DesignProject.Parent, InventorServer.DesignProjectManager, InventorServerObject.DesignProjectManager

Samples

Name Description
Set active project The following sample demonstrates the activation of an Inventor project.
Create project The following sample demonstrates the creation of an Inventor project.
Query and create library paths The following sample demonstrates querying existing library paths associated with a project and adding a new library path.

Version

Introduced in version 2011

Was this information helpful?