• Hello

    i watch to export dwg in command line or macro.
    in manual [COLOR=#000000][FONT=Verdana]DRAFT User Guide.pdf  chapter 7 ,i see how export dxf ,but i dont undesrtand chapter to export dwg,
    I see only command to configure and not to export.

    Some one can explain me,,,
    thank you[/FONT][/COLOR]
  • It's the same LIEXEC command.
    Different option.
    For example LIEXEC /Draft_DWG_LI 'R15' ConfigData 'MyConfigData'
    Where R15 stands for DWG Autocad 2000 & 2002
  • You do not need to use plot.exe
    If you read the documentation you miss a litle bit...
    Check last line of quangraslaffan post...

    LIEXEC /Draft_DWG_LI 'R15' ConfigData 'full_dxf' OUTPUTFILENAME 'E:\2D\yourfilename_.dwg'
  • to do that
    step 1 load this file by method
    define method .load()
    $* $Id: default_dxf.mac,v 1.3 2000/11/08 14:12:12 mjt Exp $
    dlicon /default_dxf
    switch PrimitiveThickness 'ON'
    switch ViewNumberPrefix 'OFF'
    switch LayerZone 'OFF'
    switch LayerSite 'OFF'
    switch LayerBack 'OFF'
    switch LayerOlay 'OFF'
    switch LayerNote 'OFF'
    switch LayerLaye 'OFF'
    switch FontMapping 'ON'
    switch LinetypeMapping 'ON'
    switch ColourMapping 'ON'
    switch IncludeZCoordinates 'OFF'
    switch GraphicsOnlyDXF 'OFF'
    switch EntityAcDbMarkers 'ON'
    switch NestedBlocks 'OFF'
    switch BlockBack 'OFF'
    switch BlockOlay 'ON'
    switch BlockSymb 'OFF'
    switch BlockFill 'ON'
    switch BlockGraphicFile 'OFF'
    switch GroupDims 'OFF'
    switch GroupNote 'OFF'
    switch GroupVnot 'OFF'
    switch GroupFrame 'OFF'
    switch GroupGlab 'OFF'
    switch GroupSlab 'OFF'
    switch GroupBlocks 'OFF'
    switch FontFilePath 'OFF'
    switch UseShiftJISFonts 'OFF'
    switch IncludeDXFHeaderEntities 'OFF'
    switch HeaderFileName '%PDMSEXE%/draft_dxf_li.dxf'
    switch OutputFileName '%PDMSUSER%/output.dxf'
    switch PlineWidthFactor '0.2'
    switch IgnoreBlockRules 'OFF'
    switch ScaleFactor '1.0'
    exit
    $P Loadable Image ConfigData 'default_dxf' - loaded...
    ----------------------
    $* $Id: full_dxf.mac,v 1.4 2000/11/08 14:35:43 mjt Exp $
    dlicon /full_dxf
    switch PrimitiveThickness 'ON'
    switch ViewNumberPrefix 'ON'
    switch LayerZone 'ON'
    switch LayerSite 'ON'
    switch LayerBack 'ON'
    switch LayerOlay 'ON'
    switch LayerNote 'ON'
    switch LayerLaye 'ON'
    switch FontMapping 'ON'
    switch LinetypeMapping 'ON'
    switch ColourMapping 'ON'
    switch IncludeZCoordinates 'OFF'
    switch GraphicsOnlyDXF 'OFF'
    switch EntityAcDbMarkers 'ON'
    switch NestedBlocks 'ON'
    switch BlockBack 'ON'
    switch BlockOlay 'ON'
    switch BlockSymb 'ON'
    switch BlockFill 'ON'
    switch BlockGraphicFile 'ON'
    switch GroupDims 'ON'
    switch GroupNote 'ON'
    switch GroupVnot 'ON'
    switch GroupFrame 'ON'
    switch GroupGlab 'ON'
    switch GroupSlab 'ON'
    switch GroupBlocks 'OFF'
    switch FontFilePath 'OFF'
    switch UseShiftJISFonts 'OFF'
    switch IncludeDXFHeaderEntities 'OFF'
    switch HeaderFileName '%PDMSEXE%/draft_dxf_li.dxf'
    switch OutputFileName '%PDMSUSER%/output.dxf'
    switch PlineWidthFactor '0.2'
    switch IgnoreBlockRules 'OFF'
    switch ScaleFactor '1.0'
    block all hvac, include name
    block all rest, include name
    block all pipe, include name
    block all equi, include name
    block all stru, include name
    exit
    $P Loadable Image ConfigData 'full_dxf' - loaded...




    endmethod
    step2
    LIEXEC /Draft_DWG_LI 'R15' ConfigData 'full_dxf' OUTPUTFILENAME 'E:\2D\yourfilename_.dwg'
  • [QUOTE=corrado;94760]It's the same LIEXEC command.
    Different option.
    For example LIEXEC /Draft_DWG_LI 'R15' ConfigData 'MyConfigData'
    Where R15 stands for DWG Autocad 2000 & 2002

    dear corrado,i type:
    First line to put config
    second line to lunch export
    ""
    LIEXEC /Draft_DWG_LI 'R13' ConfigData 'dra-dxf-full'
    PLOT  /NAME OF SHEET DXF /PATH/NAMEDRAWING.dwg

    ""

    i have my file in .dwg but when i open it ,autocad tell me that the drawing is an invalide file
  • Thank you boss corrado and boss quangraslaffan