public void Close() { doc.Close(false); app.Quit(); doc = null; drw = null; app = null; }
public Generator(String MapFile) { app = new m.Application(); doc = app.NewDocument(MapFile, false); }
public Generator(String MapFile, String Drawing) { app = new m.Application(); doc = app.NewDocument(MapFile, false); drw = (m.Drawing)doc.ComponentSet[Drawing]; }
public Generator() { app = new m.Application(); doc = app.NewDocument(null, false); drw = doc.NewDrawing(Guid.NewGuid().ToString(), app.DefaultCoordinateSystem, false); }
void ev_AddinLoaded(object sender, DocumentEventArgs Args) { app = Args.Document.Application; doc = Args.Document; comps = doc.ComponentSet; }
private void DocumentChanged(System.Object sender, Manifold.Interop.Scripts.DocumentEventArgs args) { mApp = args.Document.Application; label1.Text = args.Document.Path; }