public Triangle(IModelDoc2 _mod, UserControl1 _uc, int _id) { swModel = _mod; uc = _uc; id = _id; name = "Surface-Plane" + (id + 1).ToString(); isShowing = true; //swModel.Extension.SelectByID(name, "SURFACEBODY", 0, 0, 0, false, 0, null); //Body2 body = swModel.SelectionManager.GetSelectedObject3(1); //var face = body.GetFirstFace(); //face.Select(0); //var bRet = swModel.SelectedFaceProperties(0x00FF0000, 1, 1, 1, 1, 0, 1, false, ""); }
public void AddTaskPane() { tpv = iSwApp.CreateTaskpaneView2("", "FTL VAME Explorer"); tpv.ShowView(); tph = tpv.AddControl("TestPane", ""); tph.getSwApp(iSwApp); tph.getSwAddin(this); }