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

 

serge.quiblier
en respuesta a: maurizio_manzi

Hi @maurizio_manzi 

 

Looking at the API help file:

sergequiblier_0-1666101142071.png

 

 


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com

@serge.quiblier Do you have pdf file of this?

Hi @nguyenthinhvt95 

 

I don't have a PDF version for the API.

If I found one on my computer, it will be a very old version pretty outdated.

The HTML online version can be accessed via 

sergequiblier_0-1711009188360.png

 

 

It can be downloaded locally, but it will still be a collection of html files.

 

Regards



Serge.Q
Technical Consultant
cam.autodesk.com