Пример #1
0
 /// <summary>
 /// This method is used to initialized static variables in this class,
 /// in .Net 4, the static variables will not be initialized until use them,
 /// so we need to call this method explicitly in App.cs when Revit Starts up
 /// </summary>
 public static void InitializeCollectors()
 {
     if (!IsInitialized)
     {
         m_colExtElement  = new CollectorExts.CollectorExtElement();
         m_colExtSymbol   = new CollectorExts.CollectorExtSymbol();
         m_colExtDoc      = new CollectorExts.CollectorExtDoc();
         m_colExtParams   = new CollectorExts.CollectorExtParams();
         m_colExtApp      = new CollectorExts.CollectorExtApp();
         m_colExtGeom     = new CollectorExts.CollectorExtGeom();
         m_colExtStruct   = new CollectorExts.CollectorExtStructural();
         m_colExtMisc     = new CollectorExts.CollectorExtMisc();
         m_colExtSite     = new CollectorExts.CollectorExtSite();
         m_colExtMEP      = new CollectorExts.CollectorExtMEP();
         m_colExtEditor   = new CollectorExts.CollectorExtEditor();
         m_colExtAreas    = new CollectorExts.CollectorExtAreas();
         m_colExtRooms    = new CollectorExts.CollectorExtRooms();
         m_colExtCreation = new CollectorExts.CollectorExtCreation();
         IsInitialized    = true;
         System.Diagnostics.Trace.WriteLine("Initialized");
     }
 }
Пример #2
0
 /// <summary>
 /// This method is used to initialized static variables in this class,
 /// in .Net 4, the static variables will not be initialized until use them,
 /// so we need to call this method explicitly in App.cs when Revit Starts up
 /// </summary>
 public static void InitializeCollectors()
 {
    if (!IsInitialized)
    {
       m_colExtElement = new CollectorExts.CollectorExtElement();
       m_colExtSymbol = new CollectorExts.CollectorExtSymbol();
       m_colExtDoc = new CollectorExts.CollectorExtDoc();
       m_colExtParams = new CollectorExts.CollectorExtParams();
       m_colExtApp = new CollectorExts.CollectorExtApp();
       m_colExtGeom = new CollectorExts.CollectorExtGeom();
       m_colExtStruct = new CollectorExts.CollectorExtStructural();
       m_colExtMisc = new CollectorExts.CollectorExtMisc();
       m_colExtSite = new CollectorExts.CollectorExtSite();
       m_colExtMEP = new CollectorExts.CollectorExtMEP();
       m_colExtEditor = new CollectorExts.CollectorExtEditor();
       m_colExtAreas = new CollectorExts.CollectorExtAreas();
       m_colExtRooms = new CollectorExts.CollectorExtRooms();
       m_colExtCreation = new CollectorExts.CollectorExtCreation();
       IsInitialized = true;
       System.Diagnostics.Trace.WriteLine("Initialized");
    }
 }