assembly not updating directly

assembly not updating directly

Anonymous
Not applicable
269 Views
2 Replies
Message 1 of 3

assembly not updating directly

Anonymous
Not applicable

Dear,

 

So I made this assembly from sheet metal models. The problem is when updating the parameters I have to press run all rules two times to get these parameters the way I want is there a way to get it right without pressing run all rules. The problem I think is in the first rule I link the parameters to other parameters from the models itself. In the second rule I use the linked parameters to offset the models. So The linked parameters should update before going to the second rule. 

 

rule 1:

SyntaxEditor Code Snippet

Parameter("dubbele buiging kleine compact L1:1", "Thickness")=dikte
Parameter("dubbele buiging kleine compact L2:1", "Thickness")=dikte
Parameter("dubbele buiging kleine compact L3:1", "Thickness")=dikte
Parameter("dubbele buiging kleine compact N:1", "Thickness")=dikte
Parameter("dubbele buiging kleine compact L1:1", "zaagdikte")=zaagdikte
Parameter("dubbele buiging kleine compact L2:1", "zaagdikte")=zaagdikte
Parameter("dubbele buiging kleine compact L3:1", "zaagdikte")=zaagdikte
Parameter("dubbele buiging kleine compact N:1", "zaagdikte")=zaagdikte
Parameter("dubbele buiging kleine compact L1:1", "stuks")=stuks
Parameter("dubbele buiging kleine compact L2:1", "stuks")=stuks
Parameter("dubbele buiging kleine compact L3:1", "stuks")=stuks
Parameter("dubbele buiging kleine compact N:1", "stuks")=stuks
Parameter("dubbele buiging kleine compact L1:1", "EersteBuiging")=EersteBuiging
Parameter("dubbele buiging kleine compact L2:1", "EersteBuiging")=EersteBuiging
Parameter("dubbele buiging kleine compact L3:1", "EersteBuiging")=EersteBuiging
Parameter("dubbele buiging kleine compact N:1", "EersteBuiging")=EersteBuiging
Parameter("dubbele buiging kleine compact L1:1", "Hoogte")=HoogteL1
Parameter("dubbele buiging kleine compact L2:1", "Hoogte")=HoogteL2
Parameter("dubbele buiging kleine compact L3:1", "Hoogte")=HoogteL3
Parameter("dubbele buiging kleine compact N:1", "Hoogte")=HoogteN
Parameter("dubbele buiging kleine compact L1:1", "hoek")=HoekL1
Parameter("dubbele buiging kleine compact L2:1", "hoek")=HoekL2
Parameter("dubbele buiging kleine compact L3:1", "hoek")=HoekL3
Parameter("dubbele buiging kleine compact N:1", "hoek")=HoekN
Parameter("dubbele buiging kleine compact L1:1", "dubbelgat2x")=dubbelgat2x
Parameter("dubbele buiging kleine compact L2:1", "dubbelgat2x")=dubbelgat2x
Parameter("dubbele buiging kleine compact L3:1", "dubbelgat2x")=dubbelgat2x
Parameter("dubbele buiging kleine compact N:1", "dubbelgat2x")=dubbelgat2x
Parameter("dubbele buiging kleine compact L1:1", "Lengte")=lengte
Parameter("dubbele buiging kleine compact L2:1", "Lengte")=lengte
Parameter("dubbele buiging kleine compact L3:1", "Lengte")=lengte
Parameter("dubbele buiging kleine compact N:1", "Lengte")=lengte
Parameter("dubbele buiging kleine compact L1:1", "offsetgat2metkant")=offsetgat2metkant
Parameter("dubbele buiging kleine compact L2:1", "offsetgat2metkant")=offsetgat2metkant
Parameter("dubbele buiging kleine compact L3:1", "offsetgat2metkant")=offsetgat2metkant
Parameter("dubbele buiging kleine compact N:1", "offsetgat2metkant")=offsetgat2metkant
Parameter("dubbele buiging kleine compact L1:1", "gat1") = gat1
Parameter("dubbele buiging kleine compact L2:1", "gat1") = gat1
Parameter("dubbele buiging kleine compact L3:1", "gat1") = gat1
Parameter("dubbele buiging kleine compact N:1", "gat1") = gat1
Parameter("dubbele buiging kleine compact L1:1", "gat2") = gat2
Parameter("dubbele buiging kleine compact L2:1", "gat2") = gat2
Parameter("dubbele buiging kleine compact L3:1", "gat2") = gat2
Parameter("dubbele buiging kleine compact N:1", "gat2") = gat2

 rule2:

SyntaxEditor Code Snippet

d25=Parameter("dubbele buiging kleine compact L1:1", "LengteRechteLat")*stuks+zaagdikte*stuks
d19=Parameter("dubbele buiging kleine compact L2:1", "LengteRechteLat")*stuks+zaagdikte*stuks
d22=Parameter("dubbele buiging kleine compact L3:1", "LengteRechteLat")*stuks+zaagdikte*stuks

 Already thanks for the help,

 

Sebert Verbeek

0 Likes
270 Views
2 Replies
Replies (2)
Message 2 of 3

admaiora
Mentor
Mentor

Hi,

 

i think thant using these snippets correctly in your rule you can solve it.

 

You can run other rule from inside a rule (using the rule name correctly)

You can update your model ( equivalent to click the orange bolt update)

You can make the rule autoactivate when something happen (event triggers)

 

 

1111.jpg

 

2222.jpg

 

33.jpg

Admaiora
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

_____________________________________________________________________________
Facebook | Twitter | Youtube

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks for the answer.

 

It doesn't seem to work as it should be. I still somehow have to press run all rules 2 times.

0 Likes