AVEVA. PDMS. Export RVM

2015-06-17_172920


Usually PDMS Admin faced with task of exporting Pdms 3d Model to Rvm format.
In this article I will explain how you can do it.

First method (static RULES):

$p Message: Beginning to export  RVM…
onerror continue
— File
var !sites coll all SITE WITH (FUNCT EQ ‘PRJ’ )
!rvmFile = ‘c:\3dModel.rvm’
EXPORT FILE/$!rvmFile OVER
EXPORT ENCODING UTFE

— Representation
EXPORT HOLES ON
REPRESENTATION PROFILE ON
REPRESENTATION INSU OFF
–REPRESENTATION OBST ON TRANSL 25
REPRESENTATION LEVEL 6
REPRESENTATION LEVEL PIPE 5
REPRESENTATION LEVEL NOZZ 5
REPRESENTATION LEVEL STRU 7
REPRE TUBE ON
— Colour
EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ON
EXPORT AUTOCOLOUR ALL PIPE COLOUR 4 $* yellow
EXPORT AUTOCOLOUR ALL EQUI COLOUR 58 $* tan
EXPORT AUTOCOLOUR ALL REST COLOUR 3 $* orange
EXPORT AUTOCOLOUR ALL HVAC COLOUR 9 $* brown
EXPORT AUTOCOLOUR ALL SCTN COLOUR 30 $* steelblue
EXPORT AUTOCOLOUR ALL STRU COLOUR 27 $* aquamarine
EXPORT AUTOCOLOUR ALL PANE COLOUR 27 $* aquamarine
do !site values !sites
$!site
export ce
enddo
EXPORT FINISH
$p Message: Finish to export  RVM…

Second method(PDMS Color scheme):

EXPORT FILE /C:\TEMP\STABILZER.RVM OVER      $* RVM file
EXPORT AUTOCOLOUR DISPLAYEXPORT ON     $* Activate of color
EXPORT AUTOCOLOUR ON
EXPORT REPR ON
EXPORT HOLES ON                                                       $* Export holes
EXPORT /STABILIZER                                                    $* Export element list
EXPORT FINISH                                                              $* Finish

Third method (RULES from your RULEC file stored in PDMSUSER folder):

$p Message: Beginning to export  RVM…
onerror continue
— File
var !sites coll all SITE WITH (FUNCT EQ ‘PRJ’ )
!rvmFile = ‘c:\3dModel.rvm’
EXPORT FILE/$!rvmFile OVER
EXPORT ENCODING UTFE
— Representation
EXPORT HOLES ON
REPRESENTATION PROFILE ON
REPRESENTATION INSU OFF
REPRESENTATION LEVEL 6
REPRESENTATION LEVEL PIPE 5
REPRESENTATION LEVEL NOZZ 5
REPRESENTATION LEVEL STRU 7
REPRE TUBE ON
— Colour
EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ON
— EXPORT AUTOCOLOUR ALL PIPE COLOUR 4 $* yellow
— EXPORT AUTOCOLOUR ALL EQUI COLOUR 58 $* tan
— EXPORT AUTOCOLOUR ALL REST COLOUR 3 $* orange
— EXPORT AUTOCOLOUR ALL HVAC COLOUR 9 $* brown
— EXPORT AUTOCOLOUR ALL SCTN COLOUR 30 $* steelblue
— EXPORT AUTOCOLOUR ALL STRU COLOUR 27 $* aquamarine
— EXPORT AUTOCOLOUR ALL PANE COLOUR 27 $* aquamarine
!sRulec = !!evar(‘pdmsuser’) + ‘\’ + ‘RULEC-UNXP-COLOR’
!oRulec = object FILE(!sRulec)
!lines = !oRulec.readFile()
do !line from 2 to !lines.size()
if(!lines[!line].replace(‘ ‘,’ ‘).replace(‘ ‘,’ ‘).length() ne 1)then
!scope = !lines[!line].part(2,’\’)
!color = !lines[!line].part(3,’\’)
!expres = ‘export autocolour ‘ + !scope + ‘ colour ‘ + !color
$P $!expres
endif
enddo

do !site values !sites
$!site
export ce
enddo
EXPORT FINISH
$p Message: Finish to export  RVM…

It should be mentioned, that Pdms export use Navisworks color to form RVM file,
you may configure color dependence here:
…\Application Data\Roaming\NavisWorks 2013\rvm\colors.txt(c:\Program Files\Autodesk\Navisworks Manage 2015\rvm\)

4 thoughts on “AVEVA. PDMS. Export RVM”

  1. Thanks, give a information,
    kindly make a video of (Third method (RULES from your RULEC file stored in PDMSUSER folder): and please share.

    Regards,
    Mehul patel

  2. can we transer pdms model colour to same colours on .rvm file on nevis works with insulation transperency and all attributes.

  3. Is there a curvature faceting parameter that can be set/increased for an RVM Export command? Esp. in regards to extrusions, revolutions,,, or negative primitives.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.