DWG export "All sheets" option not activating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?