Skip to main content
10-Marble
Jan 20, 2023 9:27 PM UTC
Solved

Number of Holes as a Parameter in Part

Can someone tell me what Relation should i use to create a Parameter that captures number of Holes in a Part.

 

If I use Hole command in a Part to make Holes [Not Extruded Cuts] and did patterns for few of them, I want Creo to capture Number of Holes including pattern members into a Parameter called NUMBER_OF_HOLES

 

@MartinHanak @tbraxton @KenFarley @TomU 

 

 

TomU
TomUAnswer
23-Emerald IV
Jan 20, 2023 10:07 PM UTC

No parameter currently exists with this value.  You would need to either count them using the Find tool or build some automation to count them for you.  (J-Link, VB, Toolkit, SmartAssembly, etc.)

5 replies

TomU
TomU23-Emerald IVAnswer
23-Emerald IV
Jan 20, 2023 10:07 PM UTC

No parameter currently exists with this value.  You would need to either count them using the Find tool or build some automation to count them for you.  (J-Link, VB, Toolkit, SmartAssembly, etc.)

Translate
24-Ruby III
Jan 21, 2023 8:48 AM UTC

Hi,

every pattern contains "dimension" representing number of instances.

MartinHanak_0-1674290739733.png

Therefore you can create relation which counts hole quantity,

MartinHanak_1-1674290904876.png

 

 

Translate
NiruSatya10-MarbleAuthor
10-Marble
Jan 23, 2023 6:07 PM UTC

For this I'll have to Manually feed this info into Relations and that's the current practice I'm following.

But I'm looking for a way of Automatic Hole Feature Recognition into Parameters / Relations.

Translate
tbraxton
22-Sapphire II
Jan 23, 2023 6:12 PM UTC

Without using one of the Toolkit APIs. The best option I can come up with to semi automate this would be to build a search query that will find all of the hole features and select them all with the search tool. There may be a way to extract the total number from that selection set for use in a relation using a mapkey. I have not done this specific task but have been able to use the query tool to create lists in selection that have been useful with mapkeys.

Translate