How to dump PDMS attributes to be read into Naviswork

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