Example #1
0
 public void Update()
 {
     foreach (string item in Sub_Div_Strings)
     {
         FD_Commander.Excute(item);
     }
 }
Example #2
0
 public void Create_Set()
 {
     FD_Commander.Unselect();
     create();
     set_pro();
     FD_Commander.Unselect();
 }
Example #3
0
 public string Output()
 {
     FD_Commander.Unselect();
     foreach (string id in IDs)
     {
         FD_Commander.Select(id);
     }
     return(FD_Commander.Excute("plugin ctrlgraplug csv fwd output").ToString());
 }
Example #4
0
 public void Set_Properties()
 {
     FD_Commander.Unselect();
     foreach (FD_Object item in Members)
     {
         item.Select();
     }
     set_pro();
     FD_Commander.Unselect();
 }
Example #5
0
 protected void set_pro()
 {
     if (Property_string.Count != 0)
     {
         foreach (string property_str in Property_string)
         {
             FD_Commander.Excute(property_str);
         }
     }
 }
Example #6
0
 //Methods
 protected void create()
 {
     if (Members.Count != 0)
     {
         FD_Commander.Excute("property select " + Object_Type);
         foreach (FD_Object item in Members)
         {
             item.Create();
         }
     }
 }
Example #7
0
        //Constructor
        public FD_Range(double w, double d, double h)
            : base()
        {
            unit = Convert.ToInt32(FD_Commander.Excute("range get unit"));

            width  = w;
            deepth = d;
            height = h;

            offset_x = 0;
            offset_y = 0;
            offset_z = 0;
        }
Example #8
0
        public FD_Range(double w, double d, double h, double ox, double oy, double oz)
            : base()
        {
            unit = Convert.ToInt32(FD_Commander.Excute("range get unit"));

            width  = w;
            deepth = d;
            height = h;

            offset_x = ox;
            offset_y = oy;
            offset_z = oz;
        }
Example #9
0
        public FD_Range()
            : base()
        {
            unit = Convert.ToInt32(FD_Commander.Excute("range get unit"));

            width  = Convert.ToDouble(FD_Commander.Excute("range get size x"));
            deepth = Convert.ToDouble(FD_Commander.Excute("range get size y"));
            height = Convert.ToDouble(FD_Commander.Excute("range get size z"));

            offset_x = Convert.ToDouble(FD_Commander.Excute("range get offset x"));
            offset_y = Convert.ToDouble(FD_Commander.Excute("range get offset y"));
            offset_z = Convert.ToDouble(FD_Commander.Excute("range get offset z"));
        }
Example #10
0
        public List <string> Update()
        {
            List <string> results = new List <string>();

            if (Update_Strings.Count != 0)
            {
                foreach (string upstr in Update_Strings)
                {
                    results.Add(FD_Commander.Excute(upstr).ToString());
                }
            }

            return(results);
        }
Example #11
0
        public CSV_Target(int _analysistype)
            : base()
        {
            analysistype = _analysistype;

            object targetgroupcount = FD_Commander.Excute("plugin ctrlgraplug csv get " + Analysis_Type + " targetgroupcount");

            groups = new List <CSV_Group>();

            for (int i = 0; i < Convert.ToInt32(targetgroupcount); i++)
            {
                groups.Add(new CSV_Group(analysistype, i, 0));
            }
        }
Example #12
0
 //Methods
 public void Creat_Mesh()
 {
     Clear_Meah();
     foreach (string item in Creat_string)
     {
         FD_Commander.Excute(item);
     }
     foreach (FD_Sub_Division sb in Sub_Divisions)
     {
         sb.Update();
     }
     if (Add_Model_Edge)
     {
         FD_Commander.Excute("mesh modeledge");
     }
 }
Example #13
0
        public CSV_Group(int _Analysis_Type, int _Index, int _Type)
            : base()
        {
            analysistype = _Analysis_Type;
            index        = _Index;
            type         = _Type;

            name = (FD_Commander.Excute("plugin ctrlgraplug csv get " + AT_String + " " + GT_String + "groupname " + index.ToString())).ToString();
            int itemcount = Convert.ToInt32(FD_Commander.Excute("plugin ctrlgraplug csv get " + AT_String + " " + GT_String + "count " + Index));

            for (int i = 0; i < itemcount; i++)
            {
                object itemname = FD_Commander.Excute("plugin ctrlgraplug csv get " + AT_String + " " + GT_String + "name " + Index + " " + i.ToString());
                Items.Add(new CSV_CB(analysistype, type, index, i, itemname.ToString()));
            }
        }
Example #14
0
 public void Select()
 {
     FD_Commander.Select(id);
 }
Example #15
0
 public void Create()
 {
     FD_Commander.Unselect();
     create();
     FD_Commander.Unselect();
 }
Example #16
0
 public void Clear_Meah()
 {
     FD_Commander.Excute("mesh mode manual");
     FD_Commander.Excute("mesh select all");
     FD_Commander.Excute("mesh clear");
 }
Example #17
0
 public void Update()
 {
     FD_Commander.Excute(Set_string);
 }
Example #18
0
 //Methods
 public void Create()
 {
     id = FD_Commander.Excute(Create_string).ToString();
 }
Example #19
0
 public void Delete()
 {
     FD_Commander.Excute("obj select " + id);
     FD_Commander.Excute("obj delete");
 }