ApprenticeServerComponent.OpenWithOptions Method

Parent Object: ApprenticeServerComponent

Description

Opens a document of the specified file-name with the specified set of options.

Syntax

ApprenticeServerComponent.OpenWithOptions( FullDocumentName As String, Options As NameValueMap ) As ApprenticeServerDocument

Parameters

Name Type Description
FullDocumentName String Input String that specifies the full document name of the document to open. If only the FullFileName is specified for part and assembly documents, the master document within the file is opened.
Options NameValueMap Input NameValueMap object that specifies additional options for open. (An empty NameValueMap object can be provided). See Remarks section for the valid options.

Remarks

When opening non-Inventor DWG files, this method honors the application option to decide between open and import, unless an override is specified in the Options argument.

Valid Options arguments are:

Name ValueTypeValid DocumentNotes
DesignViewRepresentationStringPart,Assembly
PositionalRepresentationStringAssembly
ModelStateStringPart,AssemblyTypically, the ModelState to use should be provided in the form of a FulDocumentName (first argument). But if this is provided separately, you should make sure that it does not conflict with the FullDocumentName argument by providing FullFileName as the first argument rather than a FullDocumentName.
DeferUpdatesBooleanDrawing
FileVersionOptionFileVersionEnumAllValid values for FileVersionEnum are kOpenOldVersion, kOpenCurrentVersion and kRestoreOldVersionToCurrent. If set to kOpenOldVersion, save will not be allowed on the opened document. kRestoreOldVersionToCurrent is valid only if no other versions are open and the current version is not checked out.
ImportNonInventorDWGBooleanImports the DWG file to an IDW if True, Opens it into Inventor DWG if FalseWhen opening non-Inventor DWG files, this method honors the application option to decide between open and import, unless an override is specified in the Options argument.
PasswordStringAll
SkipAllUnresolvedFilesBooleanAll

Version

Introduced in version 2008