Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

maurizio_manzi
918 Vistas, 3 Respuestas

FC - API - C# - How to get the Feature in the IFMPointListPattern

Hello,
I want change the hole type (for example from simply hole to tap hole),
but if I found a IFMPointListPattern instead of an IFMHole, how can I get the Feature in the list ?

 

private void CompareCSVlinesFeatures()
{
          foreach (FMSetup setup in doc.Setups)
          {
                  if (setup.Enabled == true)
                  {
                         setup.Activate();
                          foreach (FMFeature feature in setup.Features)
                         {
                                  if (feature.Enabled == true)
                                  {
                                          if (feature is IFMHole)
                                          {
                                                  //MessageBox.Show("Feature hole found: " + feature.Name); // Hole is found, all okay
                                          }
                                  else if (feature is IFMPointListPattern)
                                  {
                                          // IFMPointListPattern ######## How can I get the Feature of it, to change the type ???


                                  }

                          }
                  }
          }
          }
}

}
}

 

 

Best regards

Maurizio Manzi