News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

DCAD V22 Macro DwgOut Type

Started by Robert Willis, September 24, 2012, 12:47:32 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Robert Willis

I am attempting to modify a macro that I wrote using DesignCAD V19. The Macro DwgOut instruction  list different file types. What are the numbers to use that correspond to the formats that DesignCAD V22 supports? I am already using File Type 0 thru 5.
File Type = 0 AutoCAD Version 12
File Type = 1 AutoCAD Version 13  <<<< Corrected since originally posted
File Type = 2 AutoCAD Version 14
File Type = 3 AutoCAD Version 2000
File Type = 4 AutoCAD Version 2004
File Type = 5 AutoCAD Version 2007
File Type = 6 AutoCAD Version ??? (Is this 20010?)

Are there any more?



prl

Not sure if there is a type 6?  Dt will have to let us know.

Here is what I use:

'Export settings

'for DC 15.1
'[0 = 2.5, 1 = 2.6, 2=9.0, 3=10.0, 5=11.0, 5=13.0, 6=14.0, 7=2000]

'for DC 15.3 to Dc 17.2:
'[0-3=2004/2005/2006, 4=R11/R12, 5=R13, 6=R14, 7=2000, 8 and higher = R13]

'for V18.0 and up:
'[0=R12, 1=R13, 2=R14, 3=2000, 4=2004, 5=2007, all other values save to 2004]


Robert Willis

Thanks for the reply. DwgOut File Type 6 and 7 generates a AutoCAD 2004 format file based on what I have seen.

File Type = 0 - AutoCAD R12 - File Header AC1009
File Type = 1 - AutoCAD R13 - File Header AC1012
File Type = 2 - AutoCAD R14 - File Header AC1014
File Type = 3 - AutoCAD 2000 - File Header AC1015
File Type = 4 - AutoCAD 2004 - File Header AC1018
File Type = 5 - AutoCAD 2007 - File Header AC1021
File Type = 6 - AutoCAD 2004 - File Header AC1018
File Type = 7 - AutoCAD 2004 - File Header AC1018

The manual export of a DesignCAD file to AutoCAD 2010 generates a File Header of AC1024. So far I have not been able to determine the proper DwgOut File Type to generate the AutoCAD 2010 format.

prl

Robert, that is interesting.  I tried a manual export with the macro recorder ON.  The dwg produced has the correct AC1024 header as you observed but the macro gives the wrong file type.  Apparently ignoring it.  Not coordinated or updated for a while.

DwgOut
{
  <SelectOnly 0
  <Filename "V:\test.dwg"
<Type 1
  <GridType 1
  <HatchType 0
  <2PointLine 0
  }


Header Codes reference:

AC1027 AutoCAD 2013
AC1024 - AutoCAD 2010/2011/2012
AC1021 - AutoCAD 2007/2008/2009
AC1018 - AutoCAD 2004/2005/2006
AC1015 - AutoCAD 2000/2000i/2002
AC1014 - AutoCAD 14
AC1012 - AutoCAD 13
AC1009 - AutoCAD 11 & 12

DrollTroll

Sorry, oversight on our parts.

Do you specifically need AutoCAD 2010 format? Will AutoCAD 2007 format not work? I don't think DesignCAD is able to create anything where 2007 vs 2010 will make a difference in the result (other than the version number).
25 years with DesignCAD

Robert Willis

So far I have been able to provide one of the other formats and that was acceptable to my customer. I was just trying to update the macro that I use to support all of the Export formats that DesignCAD V22 supports. Can we put it on the V22.xxx  bug / feature list?

Thnaks for a great product and excellant support.  I have been using the software since the ProDesign days.