Ejemplo n.º 1
0
        public static void Fix(string package, string modelname, FixVersion ver)
        {
            if (System.IO.File.Exists(package))
            {
                SimPe.Packages.GeneratableFile pkg = SimPe.Packages.GeneratableFile.LoadFromFile(package);

                System.Collections.Hashtable map = RenameForm.GetNames((modelname.Trim() != ""), pkg, null, modelname);
                FixObject fo = new FixObject(pkg, ver, false);
                fo.Fix(map, false);
                fo.CleanUp();
                fo.FixGroup();

                pkg.Save();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Enables the Color Options for this Object
        /// </summary>
        public void EnableColorOptions()
        {
            SimPe.Plugin.Rcol[] gmnds = this.GetGeometryNodes();

            ArrayList subsets = new ArrayList();

            foreach (SimPe.Plugin.Rcol gmnd in gmnds)
            {
                SimPe.Plugin.Rcol[] shpes = this.GetReferingShape(gmnd);
                this.GetSubsets(shpes, gmnd, subsets);
            }

            dn_pkg.Save();
            gm_pkg.Save();
        }