Hello ppl.
I am stucked in with creating expressions. I have some samples with this, but how to create new and a bit different, then I don't know. I read help files and checked some explainings from PDF document what I have, but there is only one page for this. It looks like a programming language, but which one or is it mixed?
Common tasks are with connectors and another furniture fittings (1 screw or more in one line, 2 or 3 columns, holes positioning etc) . Near future I have to create drawer set where engineer can choose from 1 up to 12 drawers.
I am very happy if I get some help, bad thing is my math was at school below average, but I can still read and learn.
Thx!
Meelis
Expressions
Moderators: remi77, jacs, Daniel
-
- Second Officer Cadet
- Posts: 209
- Joined: Wed Dec 30, 2015 11:25 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.20
- Contact:
Expressions
Last edited by RaudMees on Tue Mar 08, 2016 8:03 am, edited 1 time in total.
- Todd
- First Officer Cadet
- Posts: 246
- Joined: Mon Nov 10, 2014 9:28 pm
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.24
- Location: Detroit, MI
Re: Expressions
your going to have be more clear on what your exact question is
-
- Second Officer Cadet
- Posts: 209
- Joined: Wed Dec 30, 2015 11:25 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.20
- Contact:
Re: Expressions
One exact is:
first hole from front 37mm, second hole from back min 30mm, but distance must be /32mm <- when unit depth 580mm or less.
first hole from front 37mm, second hole from first hole 448mm <- when unit depth is more than 580mm.
Another:
drawer runner length 550mm. when unit depth is less than 580mm, then holes are from first hole 192/352mm. When unit depth is over 580mm, then holes from first hole 192/448mm.
I know they are simple, but not for me. I like to understand how is it works and maybe I can create them later myself.
Meelis
first hole from front 37mm, second hole from back min 30mm, but distance must be /32mm <- when unit depth 580mm or less.
first hole from front 37mm, second hole from first hole 448mm <- when unit depth is more than 580mm.
Another:
drawer runner length 550mm. when unit depth is less than 580mm, then holes are from first hole 192/352mm. When unit depth is over 580mm, then holes from first hole 192/448mm.
I know they are simple, but not for me. I like to understand how is it works and maybe I can create them later myself.
Meelis
- Todd
- First Officer Cadet
- Posts: 246
- Joined: Mon Nov 10, 2014 9:28 pm
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.24
- Location: Detroit, MI
Re: Expressions
Look at Tabulated values for this it is easier than formulas and your going to want to work them all from the front edge or back edge not alternating
The TABULATED PARAMETER option allows to create a parameter with values that depend on another parameter. This avoids using nested instructions with the WHEN operators, as shown below:
The values of nb depend on the parameter L:
- if L <= 500mm, then nb = 2
- if 500mm < L <= 1,000, then nb = 4
- if 1000mm < L <= 1,500, then nb = 5
- if L <= 1,500mm, then nb = 6
The TABULATED PARAMETER option allows to create a parameter with values that depend on another parameter. This avoids using nested instructions with the WHEN operators, as shown below:
The values of nb depend on the parameter L:
- if L <= 500mm, then nb = 2
- if 500mm < L <= 1,000, then nb = 4
- if 1000mm < L <= 1,500, then nb = 5
- if L <= 1,500mm, then nb = 6
-
- Second Officer Cadet
- Posts: 209
- Joined: Wed Dec 30, 2015 11:25 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.20
- Contact:
Re: Expressions
Yes, I know tabulated values, but with them drilling distance between holes is not divided by 32mm. Otherwise it's a simple solution and with hinges or shelves very good.
- Todd
- First Officer Cadet
- Posts: 246
- Joined: Mon Nov 10, 2014 9:28 pm
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.24
- Location: Detroit, MI
Re: Expressions
example of how when function works with paramaters
when(depth<580mm,distance/32mm,448mm)
when(depth<580mm,distance/32mm,448mm)