PDMS导出MTO管件数量的方式是:点击菜单栏的“utilities-standard reporting-reports”,run或者modify一个模版(推荐modify,直接run无法运行system command命令。)
MTOC MTOH MTOT Setting:属性说明及图示
|
|
|
|
|
Piping components
(include ELBO, FLAN, ATTA, INST, VALV, etc.; exclude TUBI)
|
|
component shows in drawing normally and material list/MTO;
e.g., set right flange MTOC=ON:
|
|
component shows in drawing normally, but not in material list/MTO;
e.g., set right flange MTOC=OFF:
|
|
component shows in drawing in dotted lines, but not in material list/MTO;
e.g., set right flange MTOC=
DOTD
:
|
|
component shows in drawing in dotted lines, but not in material list/MTO, and dimension line will not show;
e.g., set right flange MTOC=
DOT
U:
|
|
TUBIdirectly connected to the head of branch
|
|
TUBI shows in material list/MTO
|
|
TUBI not shows in material list/MTO
|
|
TUBI not shows in drawing in dotted lines, but not in material list/MTO, and dimension line will not show;
|
|
TUBI not shows in material list/MTO
|
|
TUBInot directly connected to the head of branch
|
|
TUBI shows in material list/MTO
|
|
TUBI not shows in material list/MTO
|
|
TUBI not shows in drawing in dotted lines, but not in material list/MTO, and dimension line will not show;
|
|
TUBI not shows in material list/MTO
|
Note: the recommended way is to use command to set the attribute, e.g., ‘MTOC OFF’
MTO导出with规则:
- TYPE NE 'BEND' ((TYPE NE 'TUBI' and (MTOC EQ 'ON' or MTOC EQ '' or MTOC EQ 'UNSET' )) or (TYPE EQ 'TUBI' and ((MTOT EQ 'ON' or MTOT EQ '' or MTOT EQ 'UNSET' ) or (MTOH EQ 'ON' or MTOH EQ '' or MTOH EQ 'UNSET' ))))
复制代码
这才是正确的代码。
如果导出提示代码太多,是因为HIERARCHY里你add了太多东西造成的,用group处理,建立一个groupset,把所有pipe的zone都放到里面,然后HIERARCHY里只add这个groupset。
关于mto生成后自动打开excel:
system command里填写代码:
- '"C:\Program files\Microsoft Office\Office14\excel.exe" D:\PDMS_MTO\PIPE.csv'
复制代码
注意:C:\Program files\Microsoft Office\Office14\excel.exe要和你电脑上的excel位置一致。
简单点,可以直接打开mto文件夹:
扫码访问本帖:
|