IDMW 2.0 XML-Schema Dokumentation
MATERIAL Element
IDMW 2.0 XML-Schema Dokumentation > T_NEW_CATALOG Element > FEATURE_DEFINITION Element > OPTION_DEFINITION Element : MATERIAL Element
Description
This element is used to define a material.

If the option to be created is a feature (identified by A), no colour values (COLOR) or texture (TEXTURE) must be specified.

Features are defined via T_NEW_CATALOG/FEATURE_DEFINITION/FEATURES/FEATURE/OPTIONS/OPTION.
Namespace (none)
Diagram
COLOR Element Sequence MATERIAL Element
Overview
MATERIAL 0..∞
This element is used to define a material.

If the option to be created is a feature (identified by A), no colour values (COLOR) or texture (TEXTURE) must be specified.

Features are defined via T_NEW_CATALOG/FEATURE_DEFINITION/FEATURES/FEATURE/OPTIONS/OPTION.
MATERIAL_NO required Restriction of xs:string
This attribute is used to identify a material.    D   string
   P   
   M   [1:5]
Sequence
COLOR
This element is used to define colours.
Sequence
RGB_RED Restriction of xs:nonNegativeInteger
These elements are used to specify a base colour (diffused reflection) of the material via the RGB value. It can only be used for single-colour materials.
0 = no colour intensity
255 = full colour intensity
   D   nonNegativeInteger
   P   
   M   [0:255]
RGB_GREEN Restriction of xs:nonNegativeInteger
These elements are used to specify a base colour (diffused reflection) of the material via the RGB value. It can only be used for single-colour materials.
0 = no colour intensity
255 = full colour intensity
   D   nonNegativeInteger
   P   
   M   [0:255]
RGB_BLUE Restriction of xs:nonNegativeInteger
These elements are used to specify a base colour (diffused reflection) of the material via the RGB value. It can only be used for single-colour materials.
0 = no colour intensity
255 = full colour intensity
   D   nonNegativeInteger
   P   
   M   [0:255]
Attributes
NameTypeUseDefaultFixedDescription
MATERIAL_NORestriction of xs:stringrequired  
This attribute is used to identify a material.    D   string
   P   
   M   [1:5]
Remarks

Source
<xs:element name="MATERIAL" minOccurs="0" maxOccurs="unbounded" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>260--0--NEW</xs:documentation>
    <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="COLOR">
        <xs:annotation>
          <xs:documentation>1000--0--NEW</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RGB_RED">
              <xs:annotation>
                <xs:documentation>260--11--RGB_Rot</xs:documentation>
                <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:minInclusive value="0" />
                  <xs:maxInclusive value="255" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="RGB_GREEN">
              <xs:annotation>
                <xs:documentation>260--12--RGB_Gruen</xs:documentation>
                <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:minInclusive value="0" />
                  <xs:maxInclusive value="255" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="RGB_BLUE">
              <xs:annotation>
                <xs:documentation>260--13--RGB_Blau</xs:documentation>
                <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:minInclusive value="0" />
                  <xs:maxInclusive value="255" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="MATERIAL_NO" use="required">
      <xs:annotation>
        <xs:documentation>260--0--NEW</xs:documentation>
        <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="5" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>
See Also
OPTION_DEFINITION ElementFEATURE_DEFINITION ElementT_NEW_CATALOG ElementIDMW 2.0 XML-Schema Dokumentation