• This macro will help you extract all sheets that are on the same hierarchy.
    Output file will be DWG file.
    Hope this will help you.


    !confirm = !!Alert.Confirm('Are you sure?')
    if (!confirm EQ 'YES') then


    var !sheet collect all SHEE for CE
    do !x from 1 to !sheet.size()
    $!sheet[$!x]
    !dir = 'C:\temp\'
    !filename = !dir + !!CE.NamN.Replace('/','.').Replace('\','.') + '.dwg'
    $m/%pdmsexe%\full_dxf.mac
    LIEXEC /Draft_DWG_LI 'R21' CONFIGDATA 'full_dxf' OutputFileName '$!fileName'
    enddo


    elseif (!confirm EQ 'NO')then
    return
    endif