Hole Table Style - Sequential Numbering

Hole Table Style - Sequential Numbering

gopinathmY575P
Advocate Advocate
350 Views
1 Reply
Message 1 of 2

Hole Table Style - Sequential Numbering

gopinathmY575P
Advocate
Advocate

Hello Community,

 

i have been working on holetable style. On that when i tried to use sequential numbering. it throws an error.

 

Set oFeatureHoleTable = oActiveSheet.HoleTables.AddByFeatureType(oDrawingView, oPlacementPoint, True, True, True, True, False, False, False, True)

 

The highlighted True is for SequentialNumbering.

 

First of all, i need to know the above snippet is correct or not.

 

if it is not correct, kindly help me to sort out on snippet

 

Thanks in advance.

 

0 Likes
Accepted solutions (1)
351 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

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)

0 Likes