Door

<?xml version="1.0" encoding="UTF-8"?>
<door
  symbolInstance="W-1-1"

  x1="-8.654"
  y1="-0.951"

  x2="-7.713"
  y2="-0.951"

  width="0.941"
  depth="0.200"
  height="1.985"
  orientation="3"
/>

The <door>-element represents a door on the current floor. Each door is only represented once.

Wall items: Internally magicplan differentiates between wall items and pieces of furniture. Pieces of furniture (chairs, tables, kitchen sink, etc.) are placed freely inside a room while wall items (doors, windows, radiators, etc.) are always placed in relation to a wall.
In the project (<exploded>) as well as in individual rooms (<floorRoom>) all wall items, except for windows, are expressed as a <door>-element.

Attribute

Description

symbolInstance

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

x1

The horizontal position of the first extremity of the door relatively to the center of the project, in meters, as a floating point number.

y1

The vertical position of the first extremity of the door relatively to the center of the project, in meters, as a floating point number.

x2

The horizontal position of the second extremity of the door relatively to the center of the project, in meters, as a floating point number.

y2

The vertical position of the second extremity of the door relatively to the center of the project, in meters, as a floating point number.

width

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

depth

The depth of the door in meters, as a floating point number.

height

The height of the door in meters, as a floating point number.

orientation

The orientation of the door. Inconsistent door 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 obtained by combining two bit values: bit 0, set if door opens towards the outside; bit 1, set if the door opens to the right.

XML SchemaCopied!

<xs:element name="door">
  <xs:complexType>
    <xs:attribute name="symbolInstance" type="xs:string" use="required"/>
    <xs:attribute name="x1" type="xs:decimal" use="required"/>
    <xs:attribute name="y1" type="xs:decimal" use="required"/>
    <xs:attribute name="x2" type="xs:decimal" use="required"/>
    <xs:attribute name="y2" type="xs:decimal" use="required"/>
    <xs:attribute name="width" type="xs:decimal" use="required"/>
    <xs:attribute name="depth" type="xs:decimal" use="required"/>
    <xs:attribute name="height" type="xs:decimal" use="required"/>
    <xs:attribute name="orientation" type="orientation" 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>