public DimBrickEvent(DimBrickcmd data, DimBrick extension, Document doc, FrmBrickDim form) { this._data = data; this._extension = extension; this._form = form; _doc = doc; }
public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIApplication uiapp = commandData.Application; UIDocument uidoc = uiapp.ActiveUIDocument; Application app = uiapp.Application; doc = uidoc.Document; sel = uidoc.Selection; DimBrick.Instance.CreateTypetextnote(doc); Setting = SettingBrick.Instance.GetSetting(); dimensionTypes = DimBrick.Instance.GetDimensions(doc); var form = new FrmBrickDim(this, doc); this._event = ExternalEvent.Create((IExternalEventHandler) new DimBrickEvent(this, DimBrick.Instance, doc, form)); form.Show(); form.ExEvent = this._event; return(Result.Succeeded); }