Need help working from home with your Bentley software? We're here to help - click here
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 StringDim 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-HEADINGSPART QTY SIZE COMPONENT COMPONENT RATING SCHNO (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
Product TechNotes and FAQs
Plant TechNotes And FAQs
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
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!