DC nested logical function

DC nested logical function

Postby dieter10 » Wed Nov 12, 2014 10:48 pm

Hello,

This doesn't works in sketchup:
IF( (length >=50)&&(with<=20),......)
The problem:
()&&()
How do I need to solve this?
0

dieter10 
 

Re: DC nested logical function

Postby pcmoor » Wed Nov 12, 2014 11:21 pm

there is no "&&" function but "AND"

use =IF(and(leng >=50,with<=20),true,false)

or can use nested
=IF(leng >=50,if(with<=20,true,false),false)

which returns 0 or 1

true or false can replaced for any other outcome
0

pcmoor 
 

Re: DC nested logical function

Postby dieter10 » Wed Nov 12, 2014 11:24 pm

Thanks for the quick reply!
And i have also some troubles with redrawing.
Can i make something that if i press the apply button that it automaticly redraws ?
0

dieter10 
 

Re: DC nested logical function

Postby pcmoor » Wed Nov 12, 2014 11:52 pm

by using the "current" in a dummy variable you may achieve what you are after

aX = current("x")

can post the DC, or private message ?
0

pcmoor 
 

Re: DC nested logical function

Postby dieter10 » Sun Nov 23, 2014 11:16 pm

My model is nearly finished.
Thanks for the reply's. Conclusion: you just need to think a moment how you're going to solve the problem and how you are going to create the formulas.
In the .gif file, you can see how i can modify the model.
But sometimes there is something that doesn't moves or ...
Is that a bug in sketchup? I never had this problem whem i'm starting from the original model.
0

dieter10 
 

Re: DC nested logical function

Postby pcmoor » Mon Nov 24, 2014 5:43 am

You would need to post the DC, so one can check for the error, otherwise look for the red # when it fails, or maybe a redraw is required.........one can only guess
1

pcmoor 
 

Re: DC nested logical function

Postby dieter10 » Mon Nov 24, 2014 9:35 pm

Thanks for your reply pcmoor, i found 2 red #. The function of the subcomponent referred to a variable of another head component. And i forgot to define the x position of 2 pieces. Now it seems to work fine. I just need to add the position for the keys, because they are scaled with the door panel and i want them always off the same distance off the side.
0

dieter10 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Dynamic Components

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: