Ejemplo n.º 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object can be used to retrieve data from input parameters and
        /// to store data in output parameters.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            String xml_file   = "";
            IntPtr topoData   = IntPtr.Zero;
            bool   runProgram = false;

            if (!DA.GetData(0, ref topoData))
            {
                return;
            }
            if (!DA.GetData(1, ref xml_file))
            {
                return;
            }
            if (!DA.GetData(2, ref runProgram))
            {
                return;
            }

            if (runProgram)
            {
                TopoCreator.writeXML(topoData, xml_file);
            }
        }