LIEXEC export doesn't work in Draw 2.1?

Hello experts, 

I have a modified my_full_dxf.mac file with defined blocking and layering rules etc, which I run via 

LIEXEC /draft_DWG_li 'R24' ConfigData 'my_full_dxf' OUTPUTFILENAME 'C:\DUMP\myfile.dwg'

In Draw E3D 2 it seems to be entirely ignored: it runs fine; displays no errors; does not list the set of rules as in previous versions and exports a .dwg file with some (default?) settings that don't even correspond the ones set through the E3D GUI. 

If I run it in older versions (aveva 5 and E3D 1.1) the script works as it should. When I run it it displays the list of set rules

Rule 1 : SWITCH USELAYERRULES ON
Rule 2 : SWITCH LAYERDEFAA PIPING|YELLOW,CONTINUOS
Rule 3 : SWITCH PrimitiveThickness 'ON'
etc

and gives expected results in the resulting .dwg file. 

I tried adding the line
   liload /Draft_DXF_LI
before 
    dlicon /my_full_dxf

This doesn't fix the problem in 2, but errors out in older versions. 

Is there a known way to enable this for 2? My precise version id 2.1.0.32[Z21032-8]. I would prefer using scripting to GUI for batch exports and ease of transfer to other users.

Very grateful for any help!

Parents
  • Adrijana, may I ask you why you are using LIEXEC command instead of the Draw User Interface?

  • Dear Corrado, thank you for your reply 

    several reasons: 

    1. writing macros is faster to write and easier to share among users, than using the GUI - especially when using lots of layers and layering conditions. 

    2. With LIEXEC, I can write scripts that collect and export multiple drawings collected by some condition, attribute value etc. 

    3. With LIEXEC, it's easy to switch among different export set ups - I can just create different buttons to export a different type of drawing. 

    For now; I've edited the config.xml file in my %appdata% draw settings; and then distributed among other users to not have to do a manual set-up on each machine. 

Reply
  • Dear Corrado, thank you for your reply 

    several reasons: 

    1. writing macros is faster to write and easier to share among users, than using the GUI - especially when using lots of layers and layering conditions. 

    2. With LIEXEC, I can write scripts that collect and export multiple drawings collected by some condition, attribute value etc. 

    3. With LIEXEC, it's easy to switch among different export set ups - I can just create different buttons to export a different type of drawing. 

    For now; I've edited the config.xml file in my %appdata% draw settings; and then distributed among other users to not have to do a manual set-up on each machine. 

Children