Share

FileManager Object


Description

The FileManager object provides access to file-related utility functions.

Methods

Name Description
CanCADFileBeAssociativelyImported Method that checks whether a foreign CAD file can be associatively imported into Inventor document or not.
CopyFile Method that copies the specified Autodesk Inventor file (.ipt, .idw, .ipt etc.) from one location to another.
DeleteFile Method that deletes the specified file.
GetAutoCADBlockDefinitions Method that returns the names of all the AutoCAD block definitions contained within the input DWG file. The input file can be an AutoCAD DWG or an Inventor DWG.
GetDesignViewRepresentations Method that returns the names of all the design view representations contained within the input file (either *.iam, *.ipt or *.idv).
GetDWGDocumentReferences Gets the set of direct file references from a DWG file.
GetEmbeddedDocumentShortName Method that returns the short filename of an embedded document path.
GetExpressGraphicsStatus Returns a value indicating the current state of the express graphics in the specified assembly.
GetFileNameFromIdentifier Property that returns the fully qualified name of a file using its unique identifier. The identifier must have been obtained from the GetIdentifierFromFileName method.
GetFullDocumentName Returns the full document name which is a unique identifier for an open Document. The returned string is the full file name concatenated with the model state name for a part or assembly document.
GetFullFileName Returns the full file name given its full document name.
GetIdentifierFromFileName Creates and returns a unique, persistent identifier for the specified file.
GetLastActiveDesignViewRepresentation Method that returns the name of the design view representation that was active when the file was last saved.
GetLastActiveModelState Method that returns the name of the model state that was active when the file was last saved.
GetModelStateName Method that returns the name of the model state given its full document name.
GetModelStates Method that returns the names of all the model states contained within the input file.
GetPositionalRepresentations Method that returns the names of all the positional representations contained within the input assembly file.
GetRevitEngineInstallationStatus Method that returns the Revit engine installation status for available versions.
GetSHXFontList Method that gets the array of strings containing the SHX font name list.
GetTemplateFile Method that specifies the template to use when creating a file.
GetTemplateFileWithOptions Method that gets a template file that can be used to create a new document.
InstallRevitEngineVersion Method that tries to install specified Revit engine and returns the installation status. The installation is asynchronous, and this returns kInstallationInProcessStatus if the installation is started.
IsEmbeddedDocumentPath Method that returns whether the input string indicates an embedded document path.
IsFileNameValid Validate the input filename and replace illegal filename characters with something more appropriate.
IsFutureCADFile Method that returns whether the input CAD file is a future CAD file. If an invalid CAD filename is provided an error would occur.
IsInventorComponent Returns whether the input file is an Inventor Component (part or assembly).
IsInventorDWG Method that returns whether the input file is an Inventor DWG file.
MoveFile Method that moves the specified file from one location to another.
ReferencedDocumentCount Returns the number of uniquely referenced documents the input document had at the time it was last saved. This is the number that is used in determining whether or not an assembly will open in Express mode or Full mode.
RefreshAllDocuments Refreshes all documents in memory to the latest version on disk.
SoftwareVersionSaved Returns the object that encapsulates the version of the software with which this file was last saved.
WillOpenExpressDefault Returns whether the input assembly will open in Express mode by default.

Properties

Name Description
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.
FileManagerEvents Property that gets the object that fires the File Manager related events.
Files Property that returns the FilesEnumerator object
FileSystemObject Gets the Scripting.FileSystemObject in Inventor process.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

Application.FileManager, ApprenticeServer.FileManager, ApprenticeServerComponent.FileManager, InventorServer.FileManager, InventorServerObject.FileManager

Samples

Name Description
Delete Face, Boundary Patch and Stitch features Demonstrates creating Face, Boundary Patch and Stitch features.
SurfaceBody Copy This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly.
Add a decal feature This sample demonstrates the creation of a decal feature.
Derived Parts and Assemblies This sample demonstrates the use of the API to create derived parts and assemblies.
Edit profile of an extrude feature This sample demonstrates editing the profile of an extrude feature.
Create sheet metal face and fold features This sample demonstrates the creation of sheet metal face and fold features.
Open assembly using last model state This sample demonstrates how to open an assembly document in its last active model state.
Create sheet metal lofted flange feature The following sample demonstrates the creation of a sheet metal lofted flange feature.
Sketch from Face Silhouette This sample creates a cylindrical solid, creates a new sketch plane and creates some new sketch lines from the actual edges and the apparent (silhouette) edges of the cylinder.
Sketch profile control This sample demonstrates the usage of the Profiles API to control the shape of the profile. The sample creates three concntric circles and creates an extrusion of the region between the inner circles.
Create sheet metal rip feature This sample demonstrates the creation of a rip sheet metal feature.
Sheet Metal Feature Display This sample illustrates getting basic information from the various sheet metal features.
Create sheet metal face and flange features This sample demonstrates the creation of sheet metal face and flange features.

Version

Introduced in version 6

Was this information helpful?