Exemplo n.º 1
0
      Stream(ArrayList data, BuildingSiteExportOptions bldSiteOptions)
      {
         data.Add(new Snoop.Data.ClassSeparator(typeof(BuildingSiteExportOptions)));

         data.Add(new Snoop.Data.Double("Area per person", bldSiteOptions.AreaPerPerson));
         data.Add(new Snoop.Data.Object("Property line", bldSiteOptions.PropertyLine));
         data.Add(new Snoop.Data.Double("Property line offset", bldSiteOptions.PropertyLineOffset));
         data.Add(new Snoop.Data.Double("Total gross area", bldSiteOptions.TotalGrossArea));
         data.Add(new Snoop.Data.Int("Total occupancy", bldSiteOptions.TotalOccupancy));
      }
        /// <summary>
        /// Collect the parameters and export
        /// </summary>
        /// <returns></returns>
        public override bool Export()
        {
            base.Export();

            bool exported = false;

            //parameter : BuildingSiteExportOptions options
            BuildingSiteExportOptions options = new BuildingSiteExportOptions();
            options.PropertyLine = m_propertyLine;
            options.PropertyLineOffset = m_PropertyLineOffset;

            //Export
            exported = m_activeDoc.Export(m_exportFolder, m_exportFileName, m_view3D, m_grossAreaPlan, options);
            return exported;
        }