DWG export "All sheets" option not activating

DWG export "All sheets" option not activating

dialunau
Advocate Advocate
236 Views
2 Replies
Message 1 of 3

DWG export "All sheets" option not activating

dialunau
Advocate
Advocate

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?

0 Likes
237 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

Maybe use true and false values not yes and no!

 

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

0 Likes
Message 3 of 3

Michael.Navara
Advisor
Advisor

In my opinion there is only one option you can set for DWG Translator. The option is 

oOptions.Value("Export_Acad_IniFile") = pathToIniFile

Everything else must be defined in this configuration file.

0 Likes