Problem with parameter and Ilogic

Problem with parameter and Ilogic

n2vc4b
Advocate Advocate
1,200 Views
12 Replies
Message 1 of 13

Problem with parameter and Ilogic

n2vc4b
Advocate
Advocate

Hi guys !

I have a part use parameter (attached file). I done pattern hole with distance 12.5mm. 

When I change dimension of this part (change dimension  "DD" ), quanlity hole doesn't change. How to quanlity hole automatic change while change dimension "DD" ?   

Can you help me !

Thank you and Best Regards !

0 Likes
Accepted solutions (1)
1,201 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable

It's not clear for me what you want to update in the document, is it the amount of holes, distance or parameters?

Also if you are using ilogic could you upload the coding for more clarification?

0 Likes
Message 3 of 13

n2vc4b
Advocate
Advocate

Sorry, this is a part of me

0 Likes
Message 4 of 13

Anonymous
Not applicable

I think I see your problem.

do you want to update the amount of holes created by the rectangular pattern to the total length of the support?

0 Likes
Message 5 of 13

n2vc4b
Advocate
Advocate

Yes, I tried but couldn't . 

Can you help me please ?

0 Likes
Message 6 of 13

Anonymous
Not applicable

I'll look for a solution.

0 Likes
Message 7 of 13

Anonymous
Not applicable

Hereby your part with iLogic code.

Please read the coding first the information you will need is in there.

 

If you'll find yourself using this code please accept this as a solution.

0 Likes
Message 8 of 13

johnsonshiue
Community Manager
Community Manager

Hi! There are several ways to accomplish the parametric relationship. iLogic rule can certainly do that. But, you can also use simple parameter functions to achieve the goal. Take a look at attached file and look at "d52" expression. By adding "floor()" function, the number of pattern occurrences are driven by the total length.

Please take a look and see if it works for you.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 9 of 13

Anonymous
Not applicable

Also an interesting solution and certainly a fast one but i think i will stick mostly to iLogic for those calculations. Not that there's anything wrong with it, i just like to be able to add specific variables to it to prevent parts that are impossible to make. I did exactly the same as you did in a ilogic rule (see previous post) with the possibility to add a minimum distance to the flanges.

Message 10 of 13

n2vc4b
Advocate
Advocate

Hi Wander. 

I used this code and it is good !

Tks very much

Message 11 of 13

n2vc4b
Advocate
Advocate
Accepted solution

Hi Johnson !

I used this part. It's good. I think d56=d52 * 2ul - 1ul  then perfect. Do you think so ?

Tks very much  

 

Best Regard !

0 Likes
Message 12 of 13

johnsonshiue
Community Manager
Community Manager

Hi Van,

 

It should be fine. The key is to ensure the equation would work for different spacing.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 13 of 13

Anonymous
Not applicable

Great you have found a solution that works eaven better for you.

 

Here's a little tip for future posts.

If you find yourself not needing to have to use specifically a iLogic code for the rectangular pattern please be as unspecific as possible in that field and just post what you want to create. For example naming this post "changing amount for the rectangular pattern based on length part". Yes I know its long...

 

This will make sure you find a solution quicker or maybe eaven multiple solutions in the post (like happend here) and you can pick the one that suits your application the best!

 

Sorry had to put this in here. PLEASE don't use those parameter equations and combine it with iLogic based parameter changes, this confuses the *** out of people that have to update/troubleshoot your coding.