Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Non-uniformed pattern with parameters

blaroseLB2EQ
Participant

Non-uniformed pattern with parameters

blaroseLB2EQ
Participant
Participant

Hi yall! I have a mandate at my work to optimize files with parameters so everything we do is faster. I've been stuck at one of the files. I need to configure a feature so that holes a created. I already did something like this with iLogic for another part, but this time, the pattern is non-uniformed. I don't mind having parameters to express the height of each hole, but i would like to find a way for a numeric variable (unitless) to express how many holes a created. Ex: You write "3" for the number of holes and only the first three are created or maybe only the last one is suppressed.

Thank you in advance for your help!

blaroseLB2EQ_0-1679585331899.png

 

0 Likes
Reply
277 Views
2 Replies
Replies (2)

llorden4
Collaborator
Collaborator

I did something along these lines back when I was starting with automation.  Suppression has it's uses but I found that suppressed features could still create errors with the "Wizard" even though failed sketches were suppressed.

 

If you're just looking at a few holes, either create in input box or a list of parameters and have your iLogic create holes for the number required vs pre-drawing them and suppressing them; fewer headaches in the long run this way.

 

If you're using Parameters, just skip any entries that have an empty or invalid number(s) contained.  I believe you should be able to easily create an input/list box (or perhaps a Form) and have user enter data fields without even having them bother with the Parameters menu.

 

Define some trigger to activate the iLogic rule to run and generate the part.  Complexity in the design will be whether or not you want to erase the part and start over or try to evaluate what's currently in the model and modify the existing part.

 

 

Autodesk Inventor Certified Professional
0 Likes

blaroseLB2EQ
Participant
Participant
I would like to do that too, but my knowledge with iLogic coding is pretty limited. I never tried Forms, maybe it my time to shine!