03-12-2018
06:50 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
03-12-2018
06:50 AM
Hi @@jnavrat, @Anonymous, @AJHanson,
Thanks for posting and contributing to the Autodesk FeatureCAM forum.
To add/remove a spot drill operation from a hole in a pattern, you can use something similar to the code below.
Dim doc As FMDocument Set doc = Application.ActiveDocument Dim hole As FMHole Dim pattern As FMRectPattern Set pattern = doc.Features.Item("pattern1") Set hole = pattern.Object hole.SetAttribute(eAID_DoSpotDrill,,False)
This code applies to a document that already contains a pattern of holes. Make sure that you use the correct pattern object. In this case, I used a rectangular pattern to define my holes, so I have used this type of pattern in my document.
Hope this helps! If you feel it answers your questions, please select Accept as Solution. If not, please reply to this thread and I would be happy to help.

Spencer Hardcastle
Manager of Customer Advocacy - Autodesk Fusion