looking for documentation about 3D DWF export

looking for documentation about 3D DWF export

Michiel.Valcke
Advisor Advisor
537 Views
13 Replies
Message 1 of 14

looking for documentation about 3D DWF export

Michiel.Valcke
Advisor
Advisor

Hi everyone,

I'm working on a proof of concept to use a reactor that will export a 3D DWF with each document save. However I can't seem to get the (command "_3DDWF" ...) part to work.

The only documentation I have found about exporting to 3D DWF is done in .NET.

Do any of you have experience with the export to 3D DWF done from autolisp/visual lisp? Or is it flat out impossible?

0 Likes
538 Views
13 Replies
Replies (13)
Message 2 of 14

Moshe-A
Mentor
Mentor

@Michiel.Valcke  hi

 

Does this works

(Command "._3ddwf")

Message 3 of 14

pendean
Community Legend
Community Legend
(Command "._3ddwf") works fine here as does (Command "_3ddwf") and (Command "3ddwf").

Perhaps the issue is whatever those ...... you have partially typed that are the problem you see?
Message 4 of 14

Michiel.Valcke
Advisor
Advisor

I'm sorry I wasn't clear. The (command "3DDWF") or other options work, but I cannot avoid the file dialog apparently. So I was looking to see if there were other ways.

The routine would have to run silently without requiring user input. and apparently 3ddwf doesn't follow filedia.

 

0 Likes
Message 5 of 14

Kent1Cooper
Consultant
Consultant

[EDIT:  We "crossed in the mail," so this is a little redundant with the preceding Message, but anyway....]

 

Yes, those (command) functions work to invoke the command, but it brings up the file dialog box.  I assume [@Michiel.Valcke confirm?] that a reactor to do this with every Save is going to want the file name and location automated, so the User doesn't need to do anything -- just Save and the 3DDWF is handled behind the scenes.  Unfortunately, it appears that 3DDWF does not have a command-line-only no-dialog-box version into which a routine could feed a file path and name for you, even with FILEDIA set to 0.

Kent Cooper, AIA
Message 6 of 14

pendean
Community Legend
Community Legend

@Michiel.Valcke wrote:

...but I cannot avoid the file dialog apparently....


Since both FILEDIA and CMDDIA have no affect on that behavior, my guess is this is not possible.

0 Likes
Message 7 of 14

DGCSCAD
Collaborator
Collaborator

How about:

 

(command "-export")

AutoCad 2018 (full)
Win 11 Pro
0 Likes
Message 8 of 14

Michiel.Valcke
Advisor
Advisor

@DGCSCAD 
The (command "-export" ) only works for 2D dwf's I believe.

 

0 Likes
Message 9 of 14

DGCSCAD
Collaborator
Collaborator

@Michiel.Valcke wrote:

@DGCSCAD 
The (command "-export" ) only works for 2D dwf's I believe.

 


That appears to be true. Swing and a miss. 🙂

AutoCad 2018 (full)
Win 11 Pro
0 Likes
Message 10 of 14

Moshe-A
Mentor
Mentor

@Michiel.Valcke hi,

 

Seems @DGCSCAD  was right EXPORT is the command to go with 😀

 

export 3ddwf.png

0 Likes
Message 11 of 14

DGCSCAD
Collaborator
Collaborator

-Export only publishes sheets.

 

The command prompt version of EXPORTDWF, EXPORTDWFX, and EXPORTPDF provides an interface for publishing drawing sheets that can be controlled by a script.

AutoCad 2018 (full)
Win 11 Pro
0 Likes
Message 12 of 14

paullimapa
Mentor
Mentor

@Michiel.Valcke if dwfX = 3ddwfs then the command line -Export version does support this option:

paullimapa_0-1734627716552.pngpaullimapa_1-1734627803146.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 13 of 14

DGCSCAD
Collaborator
Collaborator

Export, and -Export are 2 different commands. It's not the command-line version, as one would think it would be.

 

Export

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-A72DB257-3410-4792-B548-6B9FC1DED72B

 

-Export

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-EC98464B-D222-4673-BBE1-AF4B20EBF150

AutoCad 2018 (full)
Win 11 Pro
Message 14 of 14

Michiel.Valcke
Advisor
Advisor

I tried a version this morning with the VBA document.export method but that also didn't work. So I presume I will have to look at .NET for this kind of thing.

Thank you all for your input.

0 Likes