special trouble with autocolor export

 
  • hi all

    i have search in the forum but not found the solution.

    my environnement : pdms12.1 sp2
    trouble : export to review with autocolor

    the only way for me to get the same colors in review, is :

    1- run pdms in design
    2- run utilies export ... :
    [ATTACH=CONFIG]7673[/ATTACH]

    at this time the .rvm don't get the same colour than in pdms

    3- without exiting pdms[/U], run this .mac
    -------------------------------
    EXPORT AUTOCOLOUR ON
    AUTOCOLOUR DISPLAYEXPORT ON

    REPR CENT ON
    REPR TUBE ON
    REPR OBST ON TRANSLUCENCY 75
    REPR INSUL ON TRANSLUCENCY 50
    REPR LEV PIPE 6
    REPR LEV NOZZ 6
    REPR LEV STRU 6
    REPR LEV 6
    EXPORT HOLES ON

    --run export command
    EXPORT FILE /P:/TRT/trtREVIEW/TRT.RVM OVER
    EXPORT ENCODING UTFE

    EXPORT ALL SITE with (matchwild(name,'/D*'))

    EXPORT FINISH
    ---------------------------------------------
    at this time, the .rvm is correct.

    if i run my .mac firstable after enter in design, the .rvm don't have the good colour.

    i really don't understand why i have to run "utilities export" and then run my .mac

    if some expert have a nice idea ...

    thanks in advance.
  • thanks belrey

    i try but it's not correct (all colour are grey in review)
    i have to delete the line EXPORT AUTOCOLOUR ALL COLOUR (:RRCOLOR) because i don't get UDA RRcolor.

    any other idea are welcome
  • hi deva

    yes, there is colour rules for my project and they work fine
  • i try what ykr suggest with some correction for my sites --> nok (all colour in review are grey ...)
  • Try this one:

    I'm using this whenever is export review data from PDMS. I'm using PDMS 12.0 SP6 but maybe this will still work on PDMS 12.1 SP

    EXPORT FILE /P:/TRT/trtREVIEW/TRT.RVM OVER

    REPRE LEV 6
    REPRE LEV pipe 6
    REPRE LEV NOZZ 6
    REPRE LEV STRUC 6
    REPRE TUBE ON
    REPRE CENT ON
    REPRE INSU ON TRANSLUCENCY 50
    REPRE OBST ON TRANSLUCENCY 75
    EXPORT AUTOCOLOUR RESET
    EXPORT AUTOCOLOUR ALL COLOUR (:RRCOLOR)
    EXPORT AUTOCOLOUR  ON
    EXPORT REPRESENTATION ON
    EXPORT HOLES ON
    EXPORT ENCODING UTFE

    EXPORT ALL SITE with (matchwild(name,'/D*'))

    EXPORT FINISH
  • You may try:
    var !code project code
    var !site coll all site
    -- with matchw(name,'*-10*')
    !date = !!ggodateformat()
    !rvm = '.rvm'
    --DESIGN
    --Set default representation
     REPR LEVEL 6
     REPR LEVEL PIPE 6
     REPR LEVEL NOZZ 6
     REPR LEVEL STRU 6
     REPR INSU ON
     REPR OBST OFF

     EXPORT FILE /C:\usr\$!code-$!date$!rvm OVER
     EXPORT FILENOTE ''
     EXPORT ENCODING UTFEight
     EXPORT HOLES ON
     EXPORT AUTOCOLOUR ON
     EXPORT AUTOCOLOUR RESET
     EXPORT ENCODING UTFEight
     
     export autocolour STRU  with (matchw(name of zone,'*-STUDY-*'))                        colour 39   $*
     export autocolour PIPE  with (matchw(name of zone,'*-STUDY-*'))                        colour 52   $*
     export autocolour STRU                                                                 colour 52   $*
     export autocolour PIPE                                                                 colour 51   $*
                                                                                                         
     export autocolour EQUI                                                                 colour 18   $*
     export autocolour STRU  with (not matchw(name of zone,'*-STUDY-*'))                    colour 44   $*
     export autocolour SCTN  with (not matchw(name of zone,'*-STUDY-*'))                    colour 52   $*
     export autocolour PANE                                                                 colour 60   $*
     export autocolour PIPE  with ( matchw(name of site,'*E-*') )                           colour 12   $*
     export autocolour EQUI  with (matchw(name of site,'*E-*'))                             colour 23   $*
     export autocolour EQUI  with (matchw(name of site,'*I-*'))                             colour 64   $*
     export autocolour PIPE  with (not matchw(name of zone,'*-STUDY-*'))                    colour 51   $*
     export autocolour ATTA  with (not matchw(name of zone,'*-STUDY-*'))                    colour 64   $*

     !i = 0
     !max = !site.maxindex()
     do !name values !site
       export $!name
       !i = !i + 1
      !!fmsys.setProgress(!i * 100 / !max )
     enddo
     !!fmsys.setProgress(0)

    export exclude  /P-STUDY-S
    --export exclude  /S-(P)-STUDY
    --export exclude  all zone with matchw(name,'*STUDY*')
    export exclude /DATA
    handle any
    endhandle
    export exclude /AXES
    handle any
    endhandle


    EXPORT FINISH
  • [QUOTE=ykr;87495]You may try:
    var !code project code
    var !site coll all site
    -- with matchw(name,'*-10*')
    !date = !!ggodateformat()
    !rvm = '.rvm'
    --DESIGN
    --Set default representation
     REPR LEVEL 6
     REPR LEVEL PIPE 6
     REPR LEVEL NOZZ 6
     REPR LEVEL STRU 6
     REPR INSU ON
     REPR OBST OFF

     EXPORT FILE /C:\usr\$!code-$!date$!rvm OVER
     EXPORT FILENOTE ''
     EXPORT ENCODING UTFEight
     EXPORT HOLES ON
     EXPORT AUTOCOLOUR ON
     EXPORT AUTOCOLOUR RESET
     EXPORT ENCODING UTFEight
     
     export autocolour STRU  with (matchw(name of zone,'*-STUDY-*'))                        colour 39   $*
     export autocolour PIPE  with (matchw(name of zone,'*-STUDY-*'))                        colour 52   $*
     export autocolour STRU                                                                 colour 52   $*
     export autocolour PIPE                                                                 colour 51   $*
                                                                                                         
     export autocolour EQUI                                                                 colour 18   $*
     export autocolour STRU  with (not matchw(name of zone,'*-STUDY-*'))                    colour 44   $*
     export autocolour SCTN  with (not matchw(name of zone,'*-STUDY-*'))                    colour 52   $*
     export autocolour PANE                                                                 colour 60   $*
     export autocolour PIPE  with ( matchw(name of site,'*E-*') )                           colour 12   $*
     export autocolour EQUI  with (matchw(name of site,'*E-*'))                             colour 23   $*
     export autocolour EQUI  with (matchw(name of site,'*I-*'))                             colour 64   $*
     export autocolour PIPE  with (not matchw(name of zone,'*-STUDY-*'))                    colour 51   $*
     export autocolour ATTA  with (not matchw(name of zone,'*-STUDY-*'))                    colour 64   $*

     !i = 0
     !max = !site.maxindex()
     do !name values !site
       export $!name
       !i = !i + 1
      !!fmsys.setProgress(!i * 100 / !max )
     enddo
     !!fmsys.setProgress(0)

    export exclude  /P-STUDY-S
    --export exclude  /S-(P)-STUDY
    --export exclude  all zone with matchw(name,'*STUDY*')
    export exclude /DATA
    handle any
    endhandle
    export exclude /AXES
    handle any
    endhandle


    EXPORT FINISH

    This expression
    !date = !!ggodateformat()

    is giving the following error
    PML: Function not found

    I am running in PDMS 12.1.SP2. How can I solve this?