Exemplo n.º 1
0
        public CavityLibraryScanCmd()
        {
            m_cavityLibraryScanForm = null;
            assembly = System.Reflection.Assembly.GetExecutingAssembly();
            FileInfo asmFile = new FileInfo(assembly.Location);

            deFaultpath = asmFile.DirectoryName + "\\CavityLibrary";
        }
Exemplo n.º 2
0
 public CavityLibraryScanEditForm(string codingname, string codingnumber, string pathname, string indexname, CavityLibraryScanForm form)
 {
     InitializeComponent();
     this.codingname         = codingname;
     this.codingnumber       = codingnumber;
     this.pathname           = pathname;
     this.indexname          = indexname;
     m_cavityLibraryScanForm = form;
 }
Exemplo n.º 3
0
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

            //destroy the command dialog
            m_cavityLibraryScanForm.Hide();
            m_cavityLibraryScanForm.Dispose();
            m_cavityLibraryScanForm    = null;
            m_buttonDefinition.Pressed = false;

            //m_commandIsRunning = false;
            base.StopCommand();
        }
Exemplo n.º 4
0
        public override void StartCommand()
        {
            base.StartCommand();

            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            m_cavityLibraryScanForm = new CavityLibraryScanForm(this);

            if (m_cavityLibraryScanForm != null)
            {
                m_cavityLibraryScanForm.Activate();
                m_cavityLibraryScanForm.TopMost       = true;
                m_cavityLibraryScanForm.ShowInTaskbar = false;
                m_cavityLibraryScanForm.Show();
                m_cavityLibraryScanForm.tb1.Text = deFaultpath;
                AddInformation();
            }
        }