Can UG handle variable/automated expressions?
Can UG handle variable/automated expressions?
(OP)
I'm looking for a way of controling an expression IF a certain condidtion is met. If not, then it defaults back to "X" number. So for example:
If P1 is > 0.05mm, then P2=35mm. If P1 is < 0.05mm, then P2=5mm.
Is this possible in NX5? I'm building an assembly that depends on 2 or 3 parts all moving together when I change a sketch expression (or attempting to atleast). If it is possible, what is the proper syntax to use for the above example?
I've always just manually adjusted all the parts when we do assemblies like this, but it would be pretty neat to automate the process a little.
thanks a lot.
If P1 is > 0.05mm, then P2=35mm. If P1 is < 0.05mm, then P2=5mm.
Is this possible in NX5? I'm building an assembly that depends on 2 or 3 parts all moving together when I change a sketch expression (or attempting to atleast). If it is possible, what is the proper syntax to use for the above example?
I've always just manually adjusted all the parts when we do assemblies like this, but it would be pretty neat to automate the process a little.
thanks a lot.





RE: Can UG handle variable/automated expressions?
You can do what you want with GRIP or Knowledge Fusion.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Can UG handle variable/automated expressions?
Anyway, take a look. It should be east to figure out once you've seen it done once.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can UG handle variable/automated expressions?
thanks for the help aswell looslib, I appreate you taking the time to respond
RE: Can UG handle variable/automated expressions?
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Can UG handle variable/automated expressions?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can UG handle variable/automated expressions?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can UG handle variable/automated expressions?
RE: Can UG handle variable/automated expressions?
Now as for MITCalc, it would appear that what we've done in NX is somewhat similar, just not as comprehensive or as diversified.
However that being said, we are soon going to provide an interface to a 3rd party 'engineering solver', which will be integrated into the NX Expression system. For NX 7.5, we are going to provide an integrated two-way portal between NX and the technical computing software package, 'Maple 13', from Maplesoft, Inc.
For some details as to what this will mean and what our expectations are, please go to:
http
And for more information about 'Maple 13' itself, go to:
http://ww
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can UG handle variable/automated expressions?
I believe this is because I'm mixing angles and lengths. P1 (in the example) is an angle where P2 represents a length (component offset distance). So essentally what I'm looking for is when the angle of two parts is less than 0.5 degrees, another part sets it's offset accordingly.
The exact error it gives is:
"Error
Dimension mismatch (binary operation)
Attempt to use the ">=" opperation on Angle and Length.
Expression:
p32=IF(P44>=.5)(1.25)else(13.25)"
Any ideas on how to correct this? I changed the example you gave to apply it to our actual project. I should note (not sure if it makes a difference though) that P32 is controlled by a sketch that acts as a mating "skeleton" for the assembly. P44 is a regular "named" expression.
thanks
RE: Can UG handle variable/automated expressions?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can UG handle variable/automated expressions?
thanks again for all the help. It's appreciated
RE: Can UG handle variable/automated expressions?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.