Inventor API Documentation where are the document.openwithoptions namevaluemap example

Inventor API Documentation where are the document.openwithoptions namevaluemap example

frank_schalla
Advocate Advocate
1,768 Views
7 Replies
Message 1 of 8

Inventor API Documentation where are the document.openwithoptions namevaluemap example

frank_schalla
Advocate
Advocate

Maybe i am to blind but is there a complete list of those values ?

Thank's Frank

1,769 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor

bradeneuropeArthur_0-1599725147918.png

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 8

frank_schalla
Advocate
Advocate

Thanks for your quick response.

So far i was coming before but what i miss are these two ones on a file open action (see attachment)

Thank's Frank

 

 

0 Likes
Message 4 of 8

Michael.Navara
Advisor
Advisor

In Inventor 2021 API help is this table of possible values

 

Name Type Valid Document Type Notes

DesignViewRepresentationStringPart, AssemblyThe name of the design view representation.
PositionalRepresentationStringAssemblyThe name of the positional representation.
LevelOfDetailRepresentationStringAssemblyTypically, the LevelOfDetailRepresentation 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.
DeferUpdatesBooleanDrawingIndicates if any pending updates for the drawing will be deferred when the drawing is opened.
FileVersionOptionValue from FileVersionEnumAllValid 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
ExpressModeBehaviorStringAssemblyThe following values are valid for this setting: OpenExpress - Open the assembly in express mode. OpenFull - Open the assembly in full mode. OpenDefault - Open the assembly in the mode it was saved in.
SkipAllUnresolvedFilesBooleanAllIndicates to skip all unresolved files and continue to open the document.
DeferFlatPatternUpdateBooleanPartIndicates whether to defer the flat pattern compute or not when open a part with flat pattern in it.
Message 5 of 8

frank_schalla
Advocate
Advocate

Big thanks how you find this inside 2019 i see nothing 😞

0 Likes
Message 6 of 8

frank_schalla
Advocate
Advocate

Ah but i dont see the options for loading FULL or FAST how can i touch this over the API on drawing open via API ?
Any idea ?

0 Likes
Message 7 of 8

Michael.Navara
Advisor
Advisor

When you want to open drawing without updates, see following VBA sample

 

Sub OpenWithOptionsTest()
    Dim fileName As String
    fileName = "C:\YourDrawingFileNameHere.idw"
    
    Dim options As NameValueMap
    Set options = ThisApplication.TransientObjects.CreateNameValueMap
    Call options.Add("DeferUpdates", True)
    
    Call ThisApplication.Documents.OpenWithOptions(fileName, options)
End Sub
0 Likes
Message 8 of 8

frank_schalla
Advocate
Advocate

yes this is the right way and i search all possible values (Names) for

Call options.Add("XXXXXXXXX", True)

 

0 Likes