//void dc_DocumentCreateStarted(object sender, _AcAp.DocumentCollectionEventArgs e) //{ // try // { // e.Document.EndDwgOpen += Document_EndDwgOpen; // } // catch (Exception ex) // { // log.Error(ex.Message, ex); // } //} void dc_DocumentActivated(object sender, _AcAp.DocumentCollectionEventArgs e) { try { SetLvZuweisungen(); } catch (Exception ex) { log.Error(ex.Message, ex); } }
static void OnDocumentBecameCurrent(object sender, _BcAp.DocumentCollectionEventArgs e) { if (LinkedDocument == null) { return; } if (e.Document != LinkedDocument) { _preview?.Dispose(); _preview = null; } else { _preview = new Visualization.GrasshopperPreview(); } }
private void OnBcDocCreated(object sender, _BcAp.DocumentCollectionEventArgs e) { _ghManMap[e.Document] = new GhDataManager(e.Document); }
private void OnBcDocDestroyed(object sender, _BcAp.DocumentCollectionEventArgs e) { _ghManMap.Remove(e.Document); }