OPIM中ISO图如何定制 BOM 材料报表


1.【功能概述】
    OpenPlant ISOMetrics Manager 出图提供了强大而灵活的报表定制工具
2.【功能详解】
    软件启动后的配置对话框可以调出配置文件:

而该文件中有关于配置方法的非常有用的描述:

#-----------------------------------------------------------------------------
#
# Report definition file
#
# This file contain the defintions for all reports produced by IsoExractor.
#
# IsoExtractor reports are generic reports that operate on component attributes
# Reports generated are plain text files that can be attached to a text node in the
# drawing. A report definition is a combination of specification and a script.
#
# REPORT  = Specifies the extension given to the report. The basename
#           of the report is the same as the isometric DGN, the report is written
#           to the IE_REPORTDIR directory
#
# INCLUDE = Provides a rule which components are to be included in the report. The
#           rule operates on the component attributes. There can be multiple
#           INCLUDE lines. Any INCLUDE line satisfied includes the component in the
#           report
#
# EXCLUDE = same as INCLUDE but this time to specify that a component should not
#           be in the report. Multiple EXCLUDE lines are allowed. Any EXCLUDE
#           line satisfied excludes the component from the report.
#
# COLUMN  = <width> : <format/alignment> : <expression>
#
#           Specifies a column in the report, consists of three fields separated
#           by a colon character.
#
#           <width> specifies the width of the column in character positions
#
#           <format/alignment> a combination of:
#              L    left aligned
#              R    right aligned
#              C    centered
#              W    wrap, a new line will be added if the length of the expression
#                   exceeds the width of the report
#              A    Accumulated value. If present a variable any property mentioned in
#                   expression is multiplied by quantity
#              0-9  A single digit is interpreted as the number of decimal places to use
#                   (precision) for each property mentioned in the expression
#
#           <expression> An expression for the content of the report column. Any component
#                        attribute or string can be used. Example:
#                          IE_DESCRIPT + UUID + "and a string"
#                        would concatenate the atributes IE_DESCRIPT and UUID and the string
#                        "and a string"
#
# SEP     = column separator. Can be any combination of characters, a '@' is used
#           as a space placeholder. The default SEP is the empty string
#
# NODE    = specifies the text node number in the isometric the report will be
#           attached to
#
# SORTHEADERS = specifies if sort group headers are to be used (see: rep_sortgroups.txt)
#               1 = use sortgroup header
#               0 = dont
#
# TEXT    = Specifies a line to be written to the report. '@' acts as a placeholder
#           for a space
#
# WRITE   = Write this or another report. When empty the report is written according to
#           the COLUMN, INCLUDE, etc statements
#           When a report extension is specified than that report is included
#
# GROUP   = a list of attributes that defined which component are grouped together
#           thus using the same line in the report (increasing the quantity). Attributes
#           are comma separated
# SORT    = sort the list on a set of attributes value. Consiste of a comma separated list
#           of attributes with an optional descending/ascending order. Example:
#           SORT = <attr_name:<sortspec>,<attr_name:<sortspec>
#           sortspec (optional) is a combination of:
#             D  descending
#             N  numeric sort
#
# There is a set of attributes added by the software:
#
#  SPOOLID      the name of the spool (if any) a component is part of
#  PARTID       the part ID of the component
#  CUTID        the pipe cut ID a component is part of (only for pipes/bends)
#
#  IE_FIELD     1 if component is determined field, 0 if component is shop
#  IE_LINENAME  the line name
#
# Reserved keywords
#  QUANTITY     the nett quantity of the component, normally length for pipe/bend
#               items, piece count for piece items. The quantity for pipes is
#               formatted to the unit used
#  SIZE1        the main component diameter. Formatted to the unit used
#  SIZE2        the run size or branch size if this is different from SIZE1
#  SIZE3        the branch size if this is different from SIZE1 & SIZE2
#
#
#-----------------------------------------------------------------------------