- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
DWG export "All sheets" option not activating
I'm trying to export all sheets in an Inventor drawing file to replicate the "File-> Export-> Export to DWG" function, but the "All sheets" option is not activating when I run my code. I'm using this value map method to toggle the option:
'Initialize the value map
oOptions = ThisApplication.TransientObjects.CreateNameValueMap
'Select the Acad version
oOptions.Value("DwgVersion") = 23
'Select all sheets in the document
oOptions.Value("All_Sheets") = 0
Since the option was not being toggled, I looked up for a code that showed me all the names of the options available in the Autodesk Internal DWG translator so I could see the exact name of the option I want to work with. This is what I got:
[EXPORT SELECT OPTIONS]
AUTOCAD VERSION=AutoCAD 2000
CREATE AUTOCAD MECHANICAL=No
USE CUSTOMIZE=No
[EXPORT DESTINATION]
SPACE=Model
SCALING=Geometry
ALL SHEETS=Yes
SYMBOLS ARE BLOCKED=Yes
As you can see, the option I'm looking for should read "ALL SHEETS", but even with that exact text, my rule won't toggle the option.
Any ideas of what I'm doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Maybe use true and false values not yes and no!
Regards,
Arthur Knoors
Autodesk Affiliations:
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: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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In my opinion there is only one option you can set for DWG Translator. The option is
oOptions.Value("Export_Acad_IniFile") = pathToIniFileEverything else must be defined in this configuration file.