Plan
ExampleCopied!
<?xml version="1.0" encoding="UTF-8"?>
<plan
id="20eb114d31f0b"
name="Plan 1"
type="0"
interiorWallWidth="0.12000"
exteriorWallWidth="0.25000"
streetNumber="1"
street="Any Street"
city="Any Town"
province="Any State"
postalCode="12345"
country="Canada"
latitude="40.7143528"
longitude="-74.0059731"
altitude="10.00"
>
<floor> … </floor>
</plan>
A <plan>
-element represents a floor plan you see in magicplan as part of a magicplan Project. It is the root element of the XML.
Attribute |
Description |
---|---|
|
A unique identifier of the floor plan as assigned by magicplan. |
|
The human-readable name of the floor plan. It is in sync with the magicplan project name. |
|
The type of project: |
|
The width of interior walls in meters as specified by the user. The actual wall width in the file may vary slightly from wall to wall due to incompatible measurements entered by the user. [Default 0.12] |
|
The width of exterior walls. [Default 0.25] |
|
The country the building is located in (ISO 3166). |
XML SchemaCopied!
<xs:element name="plan">
<xs:complexType>
<xs:sequence>
<xs:element name="values" minOccurs="0"/>
<xs:element name="floor" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="interiorWallWidth" type="xs:decimal" use="required"/>
<xs:attribute name="exteriorWallWidth" type="xs:decimal" use="required"/>
<xs:attribute name="streetNumber" type="xs:string"/>
<xs:attribute name="street" type="xs:string"/>
<xs:attribute name="city" type="xs:string"/>
<xs:attribute name="province" type="xs:string"/>
<xs:attribute name="postalCode" type="xs:string"/>
<xs:attribute name="country" type="xs:string" use="required"/>
<xs:attribute name="latitude" type="xs:decimal"/>
<xs:attribute name="longitude" type="xs:decimal"/>
<xs:attribute name="altitude" type="xs:decimal"/>
</xs:complexType>
</xs:element>