Пример #1
0
 public override void StartPlacement(IGTPlacementTechniqueHelper PTHelper, Intergraph.GTechnology.API.IGTKeyObject KeyObject, Intergraph.GTechnology.API.IGTKeyObjects KeyObjectCollection)
 {
     try
     {
         m_PTHelper = PTHelper;
         IGTKeyObject  m_KeyObject           = KeyObject;
         IGTKeyObjects m_KeyObjectCollection = KeyObjectCollection;
         if (bSilent)
         {
             m_PTHelper.StatusBarPromptsEnabled = false;
             m_PTHelper.StartPlacement(m_KeyObject, m_KeyObjectCollection);
         }
         else
         {
             //Get the Argument value
             linearFNOs = new List <int>(Array.ConvertAll(m_GComp.Arguments.GetArgument(0).ToString().Split(','), int.Parse));
             m_PTHelper.StatusBarPromptsEnabled = true;
             m_PTHelper.StartPlacement(m_KeyObject, m_KeyObjectCollection);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error in Isolation Scenario PlacementTechnic Interface - StartPlacement  \n" + ex.Message, "G /Technology", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #2
0
        public virtual void StartPlacement(Intergraph.GTechnology.API.IGTPlacementTechniqueHelper PTHelper, Intergraph.GTechnology.API.IGTKeyObject KeyObject, Intergraph.GTechnology.API.IGTKeyObjects KeyObjectCollection)
        {
            try
            {
                m_PTHelper = PTHelper;
                IGTKeyObject  m_KeyObject           = KeyObject;
                IGTKeyObjects m_KeyObjectCollection = KeyObjectCollection;

                if (bSilent)
                {
                    m_PTHelper.StatusBarPromptsEnabled = false;
                    m_PTHelper.StartPlacement(m_KeyObject, m_KeyObjectCollection);
                    // End Placement
                    m_PTHelper.EndPlacement();
                }
                else
                {
                    m_PTHelper.StatusBarPromptsEnabled = true;
                    m_PTHelper.StartPlacement(m_KeyObject, m_KeyObjectCollection);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error in Isolation Scenario PlacementTechnic Interface \n" + ex.Message, "G /Technology", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }