• Hi Guys,

    I don't know if I am being stupid but I seriously can't find any information on configuring the DWG/DXF export from E3D Draw?
    Does anyone know where this is controlled? Because its not exporting the correct linetypes/lineweights for Views. The layers set at the sheet level are fine but there's an issue with the export of the representation rules etc.

    Thanks heaps
  • E3D Draw will probably have a GUI for that in the near future as for PDMS Draft.
    For the time being you need to use the Command Line.
    In there you could type something like:

    LIEXEC    /draft_DWG_li    'R24' ConfigData     'full_dxf'  OUTPUTFILENAME   'd:\TEMP\TEST_full.DWG'

    You can search for 'LIEXEC' in E3D Onlinehelp

    HTH
  • cool thanks corrado I think I may need help after I read the section
  • Dear corrado,

    I would like to export from E3D to dxf/dwg but in AutoCad I need to have layers names as same as Zones names in PDMS. It was possible in Draft with dra-dxf-full.
    I think it must be possible to setup configurable dxf/dwg file but currently I don’t know what shall be switched on and what off.

    Mike

    $* $Id: full_dxf.mac,v 1.4 2000/11/08 14:35:43 mjt Exp $
    $* Should correspond to UI 'full' configuration (PDMSUI/dflts/dra-dxf-full.pmldat)
    dlicon /full_dxf
    switch USELAYERRULES 'ON'
    switch LAYERDEFAA 'PipeLayer|Yellow,CONTINUOUS'
    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 IncludeDXFHeaderEntities 'OFF'
    switch HeaderFileName '%PDMSEXE%/draft_dxf_li.dxf'
    switch OutputFileName '%PDMSUSER%/output.dxf'
    switch IgnoreBlockRules 'OFF'
    switch IgnoreOODErrs '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
    LAYER all PIPE, 'PipeLayer'

    exit
    $P Loadable Image ConfigData 'full_dxf' - loaded...
  • Does switch LayerZone 'ON' work?
    Have you tried it?
  • Dear Corrado

    Can you explain it in more details? you mean that we can export from the command line? i copied your line but nothing happens...  i really would appreciate your clarify.

    Thanks in advance.
  • Yes you can.
    You can even run a macro.
    See an example here below:

    liload /Draft_DXF_LI

    $M/C:\AVEVA\Pdms12.0.SP6\full_dxf.mac

    /3D-AS-010001    
    LIEXEC    /Draft_DXF_LI    'DXFOUTR13'    CONFIGDATA    'full_dxf'    OUTPUTFILENAME    'C:\TEMP\3D-AS-010001.DXF'
    /3D-AS-010005    
    LIEXEC    /Draft_DXF_LI    'DXFOUTR13'    CONFIGDATA    'full_dxf'    OUTPUTFILENAME    'C:\TEMP\3D-AS-010005.DXF'
    /3D-AS-010006    
    LIEXEC    /Draft_DXF_LI    'DXFOUTR13'    CONFIGDATA    'full_dxf'    OUTPUTFILENAME    'C:\TEMP\3D-AS-010006.DXF'
    /3D-AT-600051    
  • Does anyone have the "graphics_dxf.mac" that E3D is suppose to include (minimum data in the DXF)? My installation only has the "full_dxf.mac" and the "default_dxf.mac" files.
  • Okay here is one I created that causes an error when I use it in LIEXEC.

    $* $Id: graphics_dxf.mac
    dlicon /graphics_dxf
    switch USELAYERRULES 'OFF'
    switch PrimitiveThickness 'OFF'
    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 'ON'
    switch EntityAcDbMarkers 'OFF'
    switch NestedBlocks 'OFF'
    switch BlockBack 'OFF'
    switch BlockOlay 'OFF'
    switch BlockSymb 'OFF'
    switch BlockFill 'OFF'
    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 IncludeDXFHeaderEntities 'OFF'
    switch IgnoreBlockRules 'ON'

    exit
    $P Loadable Image ConfigData 'graphics_dxf' - loaded...
    $* End of graphics_dxf.mac

    I do the $m/%pdmsexe%graphics_dxf.mac with the output below

    Loadable Image ConfigData 'graphics_dxf' - loaded...

    I then do
    LIEXEC /Draft_DXF_LI 'DXFOUTR12' CONFIGDATA 'graphics_dxf' OUTPUTFILENAME  'c:\temp\TEST.DXF' with the output below

    Rule 1 : SWITCH USELAYERRULES OFF
    Rule 2 : SWITCH PRIMITIVETHICKNESS OFF
    Rule 3 : SWITCH VIEWNUMBERPREFIX OFF
    Rule 4 : SWITCH LAYERZONE OFF
    Rule 5 : SWITCH LAYERSITE OFF
    Rule 6 : SWITCH LAYERBACK OFF
    Rule 7 : SWITCH LAYEROLAY OFF
    Rule 8 : SWITCH LAYERNOTE OFF
    Rule 9 : SWITCH LAYERLAYE OFF
    Rule 10 : SWITCH FONTMAPPING ON
    Rule 11 : SWITCH LINETYPEMAPPING ON
    Rule 12 : SWITCH COLOURMAPPING ON
    Rule 13 : SWITCH INCLUDEZCOORDINATES OFF
    Rule 14 : SWITCH GRAPHICSONLYDXF ON
    Rule 15 : SWITCH ENTITYACDBMARKERS OFF
    Rule 16 : SWITCH NESTEDBLOCKS OFF
    Rule 17 : SWITCH BLOCKBACK OFF
    Rule 18 : SWITCH BLOCKOLAY OFF
    Rule 19 : SWITCH BLOCKSYMB OFF
    Rule 20 : SWITCH BLOCKFILL OFF
    Rule 21 : SWITCH BLOCKGRAPHICFILE OFF
    Rule 22 : SWITCH GROUPDIMS OFF
    Rule 23 : SWITCH GROUPNOTE OFF
    Rule 24 : SWITCH GROUPVNOT OFF
    Rule 25 : SWITCH GROUPFRAME OFF
    Rule 26 : SWITCH GROUPGLAB OFF
    Rule 27 : SWITCH GROUPSLAB OFF
    Rule 28 : SWITCH GROUPBLOCKS OFF
    Rule 29 : SWITCH FONTFILEPATH OFF
    Rule 30 : SWITCH INCLUDEDXFHEADERENTITIES OFF
    Rule 31 : SWITCH IGNOREBLOCKRULES ON

    Then an Error pops up with details as follows:
    Error in the application.
    Object reference not set to an instance of an object.
    Severe serialization error occurred, operation aborted

    Any Clue?
  • Okay, I just needed to add the following two lines
    switch HeaderFileName '%AVEVA_DESIGN_EXE%/draft_dxf_li.dxf'
    switch OutputFileName '%AVEVA_DESIGN_USER%/output.dxf'

    And it now runs. But, I still have INSERTs in the ENTITY Section of the DXF that I don't want. I've tried running it with SWITCH IGNOREBLOCKRULES OFF and I still get BLOCKs.

    Grrrhr. E3D is beginning to bug me.

    Oh as an extra "Feature", the LIEXEC command now shows a progress bar just like the PLOT command. AEVEA says this progress bar can not be turned off. How nice.