weight attribute NX6
weight attribute NX6
(OP)
Below is what is the expression to create a weight part attribute. "mass" is equal to the expression from the body measurement feature that is the mass of the solid, in my case, mass=p38
weight_attribute = ug_setPartAttrValue("WEIGHT",format("%0.2f",mass))
In "%0.2f"
What is the symbol that comes before the zero?
The "2" is the number of decimal places.
What does the "f" refer to?
weight_attribute = ug_setPartAttrValue("WEIGHT",format("%0.2f",mass))
In "%0.2f"
What is the symbol that comes before the zero?
The "2" is the number of decimal places.
What does the "f" refer to?





RE: weight attribute NX6
It was not until I posted this that I could see that - In the text editor it looks differnt.
RE: weight attribute NX6
// Petter
RE: weight attribute NX6
http://st
It will show you most all of the so-called 'C-style String Formatting Commands' which is the basis for what we did with the NX Expression system for string formating. Now I can't guarantee that NX supports ALL of the items that you will find on this webpage, but ALL of the ones we DO support are covered there somewhere.
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.