How to dump PDMS attributes to be read into Naviswork

 
  • harryh,
    Very useful macro your attdump function
    I'm trying to use your macro but I'm having problems to use the att file with Intergraph Smart Plant Publisher.

    How can I review the original one?
    you said that it's 99% of the original, I wonder if you can share how we can review the original code.
    Thanks, AM.

    "...I made this from AVEVA supplied macro, it's 99% same as original."
  • Found it under
    ...\Pdms\11.6.SP4\PDMSUI\intf\review\mattdum
    thanks for your macro again... a good source to modify original macro to do dumps per site
  • Your macro works very well harryh - it dumps the sites that I request. However, I would like all the sites to be dumped into one single file.

    I see that you write: VAR !SITE COLLECT ALL SITE

    Can I put it in the macro somewhere, so everytime I run the macro it collect all the sites I have?

    Regards!
  • I have an ATTA that has the attribute STEXT with a $ to create a new lline.  When I dump attributes it stops at the ATTA and gives me an error:
    (47,63)   CP: Illegal ESC-U command
    In line 174 of PML function attdumpfile
    BA50CF001-FE ^^$UPSTREAM TAP,|) eq 0) then

    Seems like the $ in the stext line is causing an error.  Is there a way around this?  ignore ATTA's?  Ignore Stext?
  • You can use the Modify Attributes form and use that to get the two lines on the ATTA instead of the $ sign.
  • The fastest way to call out all attributes is using the OUTPUT command in a loop.

    Provided an array of sites to be exported exists the code would be:

    var !sites collect all SITE
    ...

    File /anyname.att $* should point to the same folder as the exported RVM-Files

    do !xc values !sites
     OUTPUT $!xc
    enddo

    TERM


    However, this will provide the PDMS standard attributes only. If any Pseudoattributes or calculated attributes are required the loop might look different. The mattdump macro as supplied by Aveva need to be changed to open the file  in Append mode and that the filename is given as parameter 1.

    The calling macro should clear the result file.

    Note that the names of rvm and att files must be identical
  • Hi,
    this macro does a good job, but how can I add extra attributes to the attribute export? The only line I see that has to do with the export is the OUTPUT line. And in this line some very elitary attributes are exported. Can I somewhere tweak this list of attributes?

    TIA

    Marc
  • champagierle...
    1. datal the required elements out...
    2. naming it ".att"
    3. place it in the same folder as the ".NWD"
    4. tick the "read .att" box on navisworks

    Then all the attributesa are picked up when you open the NWD file...

    Cheers
    Neil
  • I am not a programmer, but was able to modify it alittle.  Thanks for the program.

    I added attribute DTXR to get detail text from pipe components.  Add the attribute under the "if(TYPE" definitions.  (pipe, branch, or componants under branch as below)

    $* Check it item is owned by a branch
      if(TYPE neq |WORL|) then
        if(TYPE of OWNER eq |BRAN| and NOT BADREF(SPREF)) then
          !ATTL.append(|DTXR|)
          !ATTL.append(|APOS|)
          !ATTL.append(|ABOP|)

    I also added ATTA to be ignored as I have $ in the STEXT that was causing it to crash.  Hope to be able to add ATTA at some point so can have support attributes.

    var !COLL collect all with type neq |TUBI| and type neq |SNOD| and type neq |SJOI| and type neq |VERT| and type neq |POIN| and type neq |atta|and type neq |POGO| for site


    [QUOTE=champagnierle;39383]Hi,
    this macro does a good job, but how can I add extra attributes to the attribute export? The only line I see that has to do with the export is the OUTPUT line. And in this line some very elitary attributes are exported. Can I somewhere tweak this list of attributes?

    TIA

    Marc
  • Good..
    It works on my PC...
    Thank you so much for the sharing ...
    Bless you buddy...