コード例 #1
0
ファイル: Extension.cs プロジェクト: xin1627/RevitSdkSamples
        /// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");

            UI.SetLogo(logoImage);

            Layout.ConstOptions  = (long)REXUI.SetupOptions.HSplitFixed | (long)REXUI.SetupOptions.VSplitFixed;
            Layout.ConstOptions |= (long)REXUI.SetupOptions.DialogBottom | (long)REXUI.SetupOptions.TabView;

            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Layout", "", "Report", (long)0, HtmlSettingsControlRef, HTMLControlRef, logoImage));

            HTMLControlRef.SetDialog();
            HtmlSettingsControlRef.SetDialog();
            // insert code here.

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }
        }
コード例 #2
0
ファイル: Extension.cs プロジェクト: xin1627/RevitSdkSamples
 public void RefreshNote()
 {
     HTMLControlRef.FillNote();
 }