Material file for document

The material file (m-file) of a document defines the contents of the document from the point of view of material management. This file is taken as input to generate various tables (bill of materials, cut list, summaries, etc.) that will be output to the document.

A material file is an ASCII file that consists of data records. Records in this file can have a variable number of fields. Each field contains a tag and a value string. The tag and the value string are separated by one or more space characters (spaces or tabs). The value string includes all characters up to a terminating semicolon. This also indicates the end of the field. The end of a record is indicated by an empty field.

Each record in the m-file represents either a "self declarative" object or a component found in the corporate part catalog. Records representing "self declarative" objects contain all the data that is available for these objects to the document processing. References to other documents and pieces of equipment are represented in this way.

All records referring to the corporate catalog are expanded to contain the desired data fields from the corporate part catalog when the m-file is processed to generate the requested tables. These fields can be accessed using abbreviation references.

 

The material file is generated from geometry file. In Pipe the material file is used to create Bill of Material and Cut List into the sheet. In the .bom the information oof parts is collected.

The m-file (material list file) generation can be customized with scripts. PiMfile.mac contains scripts that Pipe uses to customize m-files. No customization takes place if this file (macro/PiMfile.mac) does not exist in any of the directories where script files defined via relative pathnames are searched from.

If you want to store the modifications to the database of an existing isometric you must save the isometric since the script is always run when the isometric is saved.

About mass properties of standard parts

When mass of a standard part is published to a report or accessed via PM_GET_OBJDATA() then it is obtained as follows:

  1. First dimension table is examined and if it has dimension with quantity type DM_Q_MASS (6) then value of that dimension is used as mass.
  2. If dimension table does not have this information then component model that the dimension table generates via GDL object is examined for computed attribute MAS. If this exists then its value is used as mass of the standard part.

Center of gravity is accessed as follows:

  1. First computed attribute CGX, CGY and CGZ are searched fom the component model that the dimension table generates via GDL object. If these are found then they define the coordinates of the center of gravity.
  2. If these are not found then center of gravity is computed as average of the connection points in the component model.

Material file example

From this material file similar part (same objects identification number) can be pulled together. For example parts having obi 000E2W01C01kpi5Sp4gAIW are straight pipe segments and the sum length is calculated from len tags: 644,59 + 138,25 + 320,23 = 1103,07

Explanation of tags:

  • obi = objects identification number

  • .pd = ID of specification

  • spn = spool number

  • pid = part id string in corporate catalog

  • len = length of pipe part

Part index #

obi 000E2W01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw -1;spn 001;.iL 0;

pid +F_bArR92GqAAZAuGwdUlOm-517;len 644.59;;

Part index #

obi 000E6W01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw -1;spn 001;.iL 1;.iM 0;

pid +Cr25rkMoI9crOuDl0h_CRG-10;qty 1;fii 74.999;;

Part index #

obi 000EAW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 1;

pid +F_bArR92GqAAZAuGwdUlOm-517;len 138.25;;

Part index #

obi 000EEW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 1;.iM 2;

pid +Cr25rkMoI9crOuDl0h_CRG-10;qty 1;fii 75.002;;

Part index #

obi 000EIW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 2;

pid +F_bArR92GqAAZAuGwdUlOm-517;len 320.23;;

Part index #

obi 000EMW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;

.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 2;

pid +hlaYMuZIJI_9s8NXsqK3Vm-11;qty 1;;

Part index #

.rt 1;.iL 2;

pid +3DsHjzLLGaE8pVStc_uHSW-13;qty 1;;

opT 1;vpo V107;flw 1;.pd +QM_.0BD_HoAZlR8cyIkqbG;spc Example_training;

Part index #

obi 000AqW01C01kpi5Sp4gAIW;.iL 2;

pid +kO6GNJV4HAkziqtZHoivCm-4;qty 1;;

Part index #

.rt 1;.iL 2;

pid +3DsHjzLLGaE8pVStc_uHSW-13;qty 1;;

ext 1;pid +aUh5oynWHWQZ_dv24blJ8m-8;qty 8;gep 1;;

ext 1;pid +YEwoFn_KJnEz9.9U1Owwz0-24;qty 8;gep 1;;

ext 1;pid +aUh5oynWHWQZ_dv24blJ8m-8;qty 8;gep 9;;

ext 1;pid +YEwoFn_KJnEz9.9U1Owwz0-24;qty 8;gep 9;;

Bill of Material File

obi 000EAW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 1;pid +F_bArR92GqAAZAuGwdUlOm-517;len 1103.07;ptn 1;cut 3;sor 10;DE Tube;DD 168.3 x 4.0;MC St 37-2;DB1 0.0162;MAS 17.8697;;

 

obi 000E6W01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw -1;spn 001;.iL 1;.iM 0;lft BASE Above 1830;pid +Cr25rkMoI9crOuDl0h_CRG-10;qty 2;ptn 2;fii 74.999;sor 30;DE Elbow;DD 3 – 168.3 x 4.5 S;

MC St 35.8 III;D61 6.757;D31 229;MAS 13.514;;

 

obi 000EMW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 2;pid +hlaYMuZIJI_9s8NXsqK3Vm-11;qty 1;ptn 3;

sor 110;DE Flange ;DD A 150 x 168.3;MC RSt 27-2;D61 6.57;D31 7;MAS 6.57;;

In this Bill of Material File there are three parts: Tube 168.3 x 4.0 – 1103.07mm, Elbow 168.3 x 4.5 – 2pcs and a Flange A150. This information is generated into sheet. Info of the parts in the .bom file is collected from corporate catalog.

Cut List / Welded

obi 000EIW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 2;pid +F_bArR92GqAAZAuGwdUlOm-517;len 320.23;ptn 1;cut 1;DE Tube;DD 168.3 x 4.0;;

 

obi 000E2W01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw -1;spn 001;.iL 0;pid +F_bArR92GqAAZAuGwdUlOm-517;len 644.59;ptn 1;cut 2;DE Tube;DD 168.3 x 4.0;;

 

obi 000EAW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;.iL 1;pid +F_bArR92GqAAZAuGwdUlOm-517;len 138.25;ptn 1;cut 3;DE Tube;DD 168.3 x 4.0;;

Cut List / Bent

obi 000EIW01C01kpi5Sp4gAIW;.ph 000Bam01C01kpi5Sp4gAIW;caw 199.4;spc Example_training;.pd +QM_.0BD_HoAZlR8cyIkqbG;flw 1;spn 001;Iup 1;.iL 2;pid +F_bArR92GqAAZAuGwdUlOm-517;len 2928.17;ptn 1;cut 1;DE Tube;DD 168.3 x 4.0;;

In this Cut List File there are three pieces of pipe D168.3; 320.23mm, 644.59mm and 138.25mm. This information is written in the list on the sheet (depending on the sheet definitions).

Related Topics

Header file for document