Esempio n. 1
0
        public AUFMLogin()
        {
            InitializeComponent();
            userbox.Text = Settings.Default.Username;
            url.Text     = Settings.Default.Url;
            PluginRecord pluginRecord = Autodesk.Navisworks.Api.Application.Plugins.FindPlugin("AUFMPlugin.AUFM");

            dockPanePlugin = (AUFMDockPane)pluginRecord.LoadPlugin();
            if (dockPanePlugin == null)
            {
                dockPanePlugin = new AUFMDockPane();
                dockPanePlugin.ActivatePane();
            }
        }
Esempio n. 2
0
        public override int Execute(params string[] parameters)
        {
            PluginRecord pluginRecord   = Autodesk.Navisworks.Api.Application.Plugins.FindPlugin("AUFMPlugin.AUFM");
            AUFMDockPane dockPanePlugin = (AUFMDockPane)pluginRecord.LoadPlugin();;

            if (dockPanePlugin != null)
            {
                dockPanePlugin.toggleVisibilty();
            }
            else
            {
                dockPanePlugin = new AUFMDockPane();
            }

            return(0);
        }
Esempio n. 3
0
        public AUFMForm()
        {
            InitializeComponent();
            PluginRecord pluginRecord = Autodesk.Navisworks.Api.Application.Plugins.FindPlugin("AUFMPlugin.AUFM");

            dockPanePlugin         = (AUFMDockPane)pluginRecord.LoadedPlugin;
            buildings              = getBuildings();
            comboBox1.Text         = Settings.Default["Building"].ToString();
            label2.Text            = comboBox1.Text;
            button1.Click         += new EventHandler(this.SelectBuilding);
            button2.Click         += new EventHandler(this.uploadParts);
            comboBox1.TextChanged += new EventHandler(this.BuildingChanged);
            Autodesk.Navisworks.Api.Application.ActiveDocument.Models.CollectionChanged += fileChanged;
            populateComboBox();
            updateButton();
            getParts();
        }