Plan

Example

<?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
id A unique identifier of the floor plan as assigned by magicplan.
name The human-readable name of the floor plan. It is in sync with the magicplan project name.
type The type of project: 0 for residential, 1 for commercial
interiorWallWidth 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]
exteriorWallWidth The width of exterior walls. [Default 0.25]
country The country the building is located in (ISO 3166).

XML Schema

&lt;xs:element name="plan"&gt;
  &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element name="values" minOccurs="0"/&gt;
      &lt;xs:element name="floor" maxOccurs="unbounded"/&gt;
    &lt;/xs:sequence&gt;

    &lt;xs:attribute name="id" type="xs:string" use="required"/&gt;

    &lt;xs:attribute name="type" use="required"&gt;
      &lt;xs:simpleType&gt;
        &lt;xs:restriction base="xs:integer"&gt;
          &lt;xs:enumeration value="0"/&gt;
          &lt;xs:enumeration value="1"/&gt;
        &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
    &lt;/xs:attribute&gt;
    &lt;xs:attribute name="name" type="xs:string" use="required"/&gt;

    &lt;xs:attribute name="interiorWallWidth" type="xs:decimal" use="required"/&gt;
    &lt;xs:attribute name="exteriorWallWidth" type="xs:decimal" use="required"/&gt;

    &lt;xs:attribute name="streetNumber" type="xs:string"/&gt;
    &lt;xs:attribute name="street" type="xs:string"/&gt;
    &lt;xs:attribute name="city" type="xs:string"/&gt;
    &lt;xs:attribute name="province" type="xs:string"/&gt;
    &lt;xs:attribute name="postalCode" type="xs:string"/&gt;
    &lt;xs:attribute name="country" type="xs:string" use="required"/&gt;

    &lt;xs:attribute name="latitude" type="xs:decimal"/&gt;
    &lt;xs:attribute name="longitude" type="xs:decimal"/&gt;
    &lt;xs:attribute name="altitude" type="xs:decimal"/&gt;
  &lt;/xs:complexType&gt;
&lt;/xs:element&gt;