Skip to main content
10-Marble
January 20, 2023
Solved

Number of Holes as a Parameter in Part

  • January 20, 2023
  • 2 replies
  • 2824 views

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 

 

 

Best answer by TomU

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.)

2 replies

TomU23-Emerald IVAnswer
23-Emerald IV
January 20, 2023

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.)

24-Ruby III
January 21, 2023

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

 

 

NiruSatya10-MarbleAuthor
10-Marble
January 23, 2023

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.

tbraxton
22-Sapphire II
22-Sapphire II
January 23, 2023

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.