Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Alex.Shechter
1816 Views, 14 Replies

iLogic counts the number extrusions of a specific feature

Hello everyone,

 

The Problem:
I am trying to figure out a way how to automate a text in drawing to count the number of feature extrusions just like Hole Table does.

 

Cause of the problem:
Very often we have a part that has slots and this slots number varies.
I always count manually those slots and type it as a “static” txt in the drawing and when someone else works later on this part it is very often that we forget to update that static text.

 

My idea for a solution:
An iLogic rule in the part. This rule counts the number of extrusions that a feature with a specific name creates and writes it down in User Parameters.
For example:  “Slots1” (extrusion feature) has extruded 25 slots. The code writes in the User Parameters “Extrusion_Slots1” = 25
If “Slots1” for whatever reason after a change extrudes only 5 slots now then the parameter “Extrusion_Slots1” in the User Parameters should get automatically updated.
Then in the drawing I can add text and select User Parameters and add the “Extrusion_Slots1” as a variable that gets me the automatically updated value.

 

The question is how I get Inventor to count the number of extrusions that a specific feature does.