using weight in expressions
using weight in expressions
(OP)
I am new to this site but haven't found anything on what i am trying to do yet. Basically I have a final unit assembly i need to put a base under. The base is created from I-Beam. I want to set up an expression that either changes the dimensions of the i-beam according to the unit weight or suppresses/un-suppresses different size i-beams. Either is fine. However i can't seem to get the i-beams to change either way after the weight changes. Below are examples of the different expressions i created but dont seem to work. Any ideas what i am doing wrong?
Beam_Heighta if(A_Unit_Weight<=1000)(12.25)else(Beam_Heightb)
Beam_Heightb if(A_Unit_Weight>=1001&&A_Unit_Weight<=5000)(18.59)else(Beam_Heightc)
Beam_heightc if(A_Unit_Weight>=5001&&A_Unit_Weight<=10000)(24.3)else(Beam_Heightd)
Beam_Heightd if(A_Unit_Weight<=10001)(36)else(Beam_Heightb)
12" I-Beam if(A_Unit_Weight<1000)(1)else(0)
18" I-Beam if(A_Unit_Weight>1001&&A_Unit_Weight<5000)(1)else(0)
Beam_Heighta if(A_Unit_Weight<=1000)(12.25)else(Beam_Heightb)
Beam_Heightb if(A_Unit_Weight>=1001&&A_Unit_Weight<=5000)(18.59)else(Beam_Heightc)
Beam_heightc if(A_Unit_Weight>=5001&&A_Unit_Weight<=10000)(24.3)else(Beam_Heightd)
Beam_Heightd if(A_Unit_Weight<=10001)(36)else(Beam_Heightb)
12" I-Beam if(A_Unit_Weight<1000)(1)else(0)
18" I-Beam if(A_Unit_Weight>1001&&A_Unit_Weight<5000)(1)else(0)





RE: using weight in expressions
www.nxjournaling.com
RE: using weight in expressions
RE: using weight in expressions
These formulas would catch all values up to 10000:
CODE
Beam_Heightb if(A_Unit_Weight>1000&&A_Unit_Weight<=5000)(18.59)else(Beam_Heightc)
Beam_Heightc if(A_Unit_Weight>5000&&A_Unit_Weight<=10000)(24.3)else(Beam_Heightd)
www.nxjournaling.com
RE: using weight in expressions
What version of NX?
www.nxjournaling.com
RE: using weight in expressions
RE: using weight in expressions
RE: using weight in expressions
Just to be clear: do you have 10 separate part files added as components to this assembly, or do you have 1 file with 10 different sketches in it representing 10 different parts?
www.nxjournaling.com
RE: using weight in expressions
RE: using weight in expressions
Make sure the delayed after update option is turned off (Tools -> Update).
Are you using units on any of these expressions? Perhaps if the units don't work out it won't apply the values (ie trying to drive a length in a sketch with an expression that has units for pressure).
www.nxjournaling.com
RE: using weight in expressions
RE: using weight in expressions
Create an expression such as weight_condition_1 and give it a value of 1000 lbm (you will have to use the dropdowns to assign the units on the expression). Now change your beam height expressions to be something like:
Beam_Heighta if(A_Unit_Weight<=weight_condition_1)(12.25)else(Beam_Heightb)
You'll see that it now updates correctly when the weight (mass) of the cylinder changes.
Optionally, you might also want to assign the Beam_height expressions unit values of inch to better capture your design intent.
www.nxjournaling.com
RE: using weight in expressions
RE: using weight in expressions
I created an intermediate expression that had the same units as A_Unit_Weight. This is a quick & easy way to create a consistent comparison. Perhaps there is a way to add units to a value directly within your equation. I have not tried that.
www.nxjournaling.com