Cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create Hole Table in Draft Document programmatically

Valued Contributor
Valued Contributor

Hi All,

 

I'm trying to create hole table in the drawing sheet but I'm not able to find any methods to add hole table.

 

The "DraftDocument.HoleTables" collection doesnt have any method to add any new hole table.

 

Has anyone here ever created a hole table programmatically?

 

If yes, can anyone guide me on the same? Or is it not possible yet to create a hole table?

 

Thanks in advance.

6 REPLIES 6

Re: How to Create Hole Table in Draft Document programmatically

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

ST10 or newer offers a HoleTables2 collection allowing to add a HoleTable2. May be this helps.

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: How to Create Hole Table in Draft Document programmatically

Valued Contributor
Valued Contributor
Hi Wolfgang,

Thanks for your reply.

Yes it seems that there is a HoleTables2 collection in ST10 but unfortunately im using ST9.
Let me see if I can update my Solid Edge to ST10.

Regards
Sumit

Re: How to Create Hole Table in Draft Document programmatically

Legend
Legend

@Sumit20,

 

Maybe Application.StartCommand (DetailCommandConstants.DetailDimensionHoleTable) is possible in ST9.

 

HTH

Gerald

Re: How to Create Hole Table in Draft Document programmatically

Valued Contributor
Valued Contributor

Hi Gerald,

 

@Gerald ,But it will just start the Hole Table command if I'm not wrong and user has to then do the whole thing manually which I dont want to do.

 

Then how are we suppose to add the hole table? Is there some way to do that programmatically?

 

Regards

Sumit

Highlighted

Re: How to Create Hole Table in Draft Document programmatically

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

You got a good example in the sdk help.

Look for HoleTables2.Add method.

Julian Guillo
Pixel Sistemas SL
Spain

Re: How to Create Hole Table in Draft Document programmatically

Solution Partner Genius Solution Partner Genius
Solution Partner Genius
Upps! I didn't see the previous answer Smiley Happy
Update to ST10
Julian Guillo
Pixel Sistemas SL
Spain