Same Pipe name while plotting using detail list

 
Parents
  • 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.
Reply
  • 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.
Children
No Data