Quantcast
Viewing all articles
Browse latest Browse all 16985

Wiki Page: How To Add New Fields In The ISOGEN BOM Such As Rating Or Schedule [TN]

Applies To Product(s): AutoPLANT Isogen Version(s): All Environment: N/A Area: N/A Subarea: N/A Original Author: Bentley Technical Support Group To Add New Fields to the Isogen BOM: 1. Using the AutoPLANT Script Editor open the file ..Bentley\PLANT XM\XCHG\PCF\OPCFHDR.EBS. 2. Search for the comment '// Function to write a component's item code and add the following at the end of the list of Dim statements: Dim rating As String Dim schedule As String 3. Search for the '// Redirect output to MDF file add the following three lines after the last nStat statement: nStat = at_Component_getString(rating, compID,"RATING") nStat = at_XchgWriteText("RATING ") nStat = at_XchgWritelnText(rating) 4. To add more fields to the Isogen Material List repeat the three lines above for the next item: nStat = at_Component_getString(schedule, compID, "SCHEDULE") nStat = at_XchgWriteText("SCHEDULE ") nStat = at_XchgWritelnText(schedule) 5. To display the two new fields in the Material List add Text Type records -80 and -81 to the STYLE2-DATA-ITEMS section of the Material Definition File (.MLD). In the example below, Text Type -80 corresponds to Rating and Text Type -81 corresponds to Schedule. Please pay close attention to the start column and justification of the Data-Items and Column Headings. The vertical bar on the right determines the location of the divider between the Material List and the drawing. STYLE2-COLUMN-HEADINGS PART QTY SIZE COMPONENT COMPONENT RATING SCH NO (INS) CODE DESCRIPTION| ---- ---- ----- --------- ----------- ------ ---- STYLE2-DATA-ITEMS 'PT-NO' 2 R 'QTY' 8 R 'N.S.' 15 L 'ITEM_CODE' 22 L 'DESCRIPTION' 35 L '-80' 79 '-81' 90 See Also Product TechNotes and FAQs Plant TechNotes And FAQs External Links Bentley Technical Support KnowledgeBase Bentley LEARN Server Comments or Corrections? Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

Viewing all articles
Browse latest Browse all 16985

Trending Articles