Same Pipe name while plotting using detail list

 
  • I think in Detail List, it will only run the option once then extract all the Pipes so that's why results have the same Atext 255.
    it would be better to have custom batch extraction for these for example.


    !arrPipes = object array()

    !arrPipes.append('/PIPE1')
    !arrPipes.append('/PIPE2')
    !arrPipes.append('/PIPE3')
    !arrPipes.append('/PIPE4')
    !arrPipes.append('/PIPE5')
    !arrPipes.append('/PIPE6')

    do !strPipes values !arrPipes

    $!strPipes

    $m %your option file location here%

    DETAIL CE

    enddo



  • Hi cutesmile!,

    Thanks for your valuable reply.

    While running the above code i am getting the error (46,80).
    for the line

    [COLOR=#333333]do !strPipes values !arrPipes

    [/COLOR]Can you please help me in this?
  • try to paste as macro (ctrl+m) instead of ctrl+v

    or

    make the code as a macro and run it. (using $m or drag and drop)
  • Hi cutesmile,

    Yeah it working now thank you..!

    Now am facing another issue, pipename missing in the dxf outputs. so i made below changes in my option file.

    !FILENAMEX = !!CE.NAMN& '_Sht_'
    File AND DXF  "\\data\MAA\PDMS_Datafiles\ISO_MW/$!FILENAMEX"  SINGLE

    But this too not helping, now the dxf name is caming as below,

    if pipename= GDB50BR002, dxf name coming as GDB50BR002_Sht_001.dxf , GDB50BR002_SHT_002.dxf

    But what we want is the dxf/pdf output file name same as, if we plot a single file in isodraft  (ex:GDB50BR002_Sht_1.dxf)
    because we do batch / single plot from isodraft case to case so we dont need any changes in name format in both cases.

    Can you please help me in this?
  • in our case, we post process the extracted drawing. We rename the drawing after extracted, we use the following syntax in determining the Number of sheets and the filename;

    var !isoCount isdraw number - to get the total sheet
    var !plotFile isodraw plotfile 1filename - to get the filename of sheet 1

    example will be below;


    !arrPipes = object array()
    !arrPipes.append('PIPE1')
    !arrPipes.append('PIPE2')

    do !strPipes values !arrPipes
        $!strPipes

        !pipename = namn


        $m %option file location here%

     
        DETAIL CE

     
         var !ISOCOUNT isodraw number
         
         do !PLOT from 1 to !ISOCOUNT.REAL()
             var !PLOTFILE isodraw plotfile $!PLOT filename
             !oldName = '$!PLOTFILE' & '.dxf'
             !oldName =substring(!oldName.Replace('/','\'),2)
             !newName = 'c:\temp\' & '$!pipename' & '_sht_' & '$!PLOT' & '.dxf'
             SYSCOM 'COPY "$!oldName" "$!newName"'
         enddo
     
    enddo

     



    extracted iso with correct name will be copied to C:\temp in this case.