Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: gopinathmY575P

Hi @gopinathmY575P.  I very rarely use a hole table, and then not by code, so I'm not super familiar with them, but I may still be able to help some with the code side.

Here is the link to the online help for the HoleTables object, which has links to all 3 Add type methods:

https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-705C188C-7243-499D-8D7A-0C690A8C6531 

And here is the link to the online help for the HoleTables.AddByFeatureType method you are trying to use:

https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-8B163E41-544C-4751-99FA-A51EB39DCB51

You will see some important 'Remarks' at the bottom of that page. It warns that using this will cause an error if there is no origin indicator in the view specified as the first input variable, and how to check for that ahead of time.

And here is the link to the online help page for the HoleTableStyle object, which you can optionally supply to that method above, which might influence the numbering scheme.

https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-FAA1622B-5564-4B6A-B933-16A679AC6EC0 

I hope this helps.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)