Door
<?xml version="1.0" encoding="UTF-8"?>
<door
symbolInstance="W-2-1"
point="3"
snappedPosition="0.68850"
snappedWidth="0.75000"
snappedOrientation="0"
insetY="0.0"
/>
The <door>
-element represents a door located on a wall in the current room. If the door is connecting two rooms, it is represented once on each wall of each room. See also SymbolInstance for more information.
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.
For more information, please see wall items.

Attribute |
Description |
---|---|
|
The unique identifier of the |
|
The index 0-based of the |
|
The corrected relative position of the center of the door 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. |
|
The corrected width of the door in meters represented by a floating point number. This value should be used when drawing an assembled project. |
|
The corrected orientation of the door after the rooms are assembled. 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. |
|
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="door">
<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>