.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Repeat EXPORTLAYOUT command for all layouts

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
kresimir.kukec
964 Views, 3 Replies

Repeat EXPORTLAYOUT command for all layouts

Hi 

 

I have drawing with 100 layouts and a want aplay EXPORTLAYOUT to all layouts

EXPORTLAYOUT command asks first for drawing name and than for "Open exported drawing?".

 

could someone give me a hint how to solve this

 

 

Tags (2)
3 REPLIES 3
Message 2 of 4

Hi,

 

There is no direct API to EXPORTLAYOUT. One workaround is to use script. When you use EXPORTLAYOUT command through scripts, AutoCAD does not show the mentioned prompt.  

 

<SCR FILE>

EXPORTLAYOUT

C:\TEMP\LAYOUT1.DWG


<SCR FILE>



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 3 of 4

Below is a link for code created by Tony Tanzillo over at TheSwamp.  There are two different commands available.  One uses the command line and the other does not. 

 

http://www.theswamp.org/index.php?topic=44472.msg497326#msg497326

 

 

Message 4 of 4
jeff
in reply to: Keith.Brown

ExportLayout is implemented in .NET and look at the dll with reflector in AutoCAD install folder there is a

 

 

AcExportLayoutUI.dll -- actual commands

AcExportLayoutEX.dll

AcExportLayout.dll

You can also find your answers @ TheSwamp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost