UpdateInitialParameters() 개인적인 메소드

private UpdateInitialParameters ( Document doc ) : void
doc Document
리턴 void
예제 #1
0
        private void RegisterSectionUpdaterOnOpen(object source, DocumentOpenedEventArgs args)
        {
            if (args.Document.Title.StartsWith("AssociativeSection"))
            {
                m_sectionUpdater = new SectionUpdater(m_thisAppId);
                m_sectionUpdater.Register(args.Document);

                bool enableSecondUpdate = false;
                if (enableSecondUpdate)
                {
                    m_sectionUpdater.UpdateInitialParameters(args.Document);
                }
            }

            args.Document.DocumentClosing += UnregisterSectionUpdaterOnClose;
        }
예제 #2
0
파일: Application.cs 프로젝트: AMEE/revit
        private void RegisterSectionUpdaterOnOpen(object source, DocumentOpenedEventArgs args)
        {
            if (args.Document.Title.StartsWith("AssociativeSection"))
              {
             m_sectionUpdater = new SectionUpdater(m_thisAppId);
             m_sectionUpdater.Register(args.Document);

             bool enableSecondUpdate = false;
             if (enableSecondUpdate)
             {
                m_sectionUpdater.UpdateInitialParameters(args.Document);
             }
              }

               args.Document.DocumentClosing += UnregisterSectionUpdaterOnClose;
        }