/* * public struct MyWall * { * public XYZ endPoint0; * public XYZ endPoint1; * public MyLevel bottomLevel; * public MyLevel topLevel; * public string wallType; * * public MyWall(XYZ ep0, XYZ ep1, MyLevel bl, MyLevel tl, string wt) * { * endPoint0 = ep0; * endPoint1 = ep1; * bottomLevel = bl; * topLevel = tl; * wallType = wt; * } * } * * public int callCounter = 0; * * public System.Drawing.Point lastCursor = new System.Drawing.Point(-5, -5); * */ public Result OnStartup(UIControlledApplication application) { thisApp = this; //application.ControlledApplication.ApplicationInitialized += OnApplicationInitialized; application.ControlledApplication.DocumentCreated += OnDocumentCreated; application.ControlledApplication.DocumentOpened += OnDocumentOpened; return(Result.Succeeded); }
public void Execute(UIApplication uiapp) { try { result = processor.ExecuteReadAndRepeat(op); resumeEvt.Set(); } catch (Exception e) { PlugIn.WriteMessage(e.Message + e.StackTrace); } }