Window

<?xml version="1.0" encoding="UTF-8"?>
<window
  symbolInstance="W-0-0"

  point="6"

  snappedPosition="0.67558"

  snappedWidth="1.28213"
  snappedOrientation="0"
  insetY="0.0"
/>

The <window>-element represents a window located on a wall in the current room. If the window is connecting two rooms, it is represented once on each wall of each room.

Screenshot

Attribute

Description

symbolInstance

The unique identifier of the <symbolInstance> element containing data attached to this window. The symbol instance contains the symbol ID.

point

The index 0-based of the <point> element starting the wall containing the window.

snappedPosition

The corrected relative position of the center of the window on the wall represented by a floating point number between 0.0 and 1.0. This value should be used when drawing an assembled project.

snappedWidth

The corrected width of the window in meters represented by a floating point number. This value should be used when drawing an assembled project.

snappedOrientation

The corrected orientation of the window after the rooms are assembled. Inconsistent window orientations are unified across rooms and may differ from the original orientation. This value should be used when drawing an assembled project. The orientation is a number between 0 and 3 specifying which way the window is facing and if it opens to the left or the right.

insetY

Floating point number in meters to determine how far the object is into the wall. Positive values show that the object goes away from the middle of the wall and into the room. Negative values show that the object goes further inside the wall.

XML SchemaCopied!

<xs:element name="window">
  <xs:complexType>
    <xs:attribute name="symbolInstance" type="xs:string" use="required"/>
    <xs:attribute name="point" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:integer">
          <xs:minInclusive value="0"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="snappedPosition" type="position" use="required"/>
    <xs:attribute name="snappedWidth" type="xs:decimal" use="required"/>
    <xs:attribute name="snappedOrientation" type="orientation" use="required"/>
    <xs:attribute name="insetY" type="xs:decimal" use="required"/>
  </xs:complexType>
</xs:element>

<xs:simpleType name="orientation">
  <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="3"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="position">
  <xs:restriction base="xs:decimal">
    <xs:minInclusive value="0.0"/>
    <xs:maxInclusive value="1.0"/>
  </xs:restriction>
</xs:simpleType>