//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);
            }
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 private void OnBcDocCreated(object sender, _BcAp.DocumentCollectionEventArgs e)
 {
     _ghManMap[e.Document] = new GhDataManager(e.Document);
 }
Beispiel #4
0
 private void OnBcDocDestroyed(object sender, _BcAp.DocumentCollectionEventArgs e)
 {
     _ghManMap.Remove(e.Document);
 }