jmarkus
Mechanical
- Jul 11, 2001
- 377
Hi,
I've got a journal that will create a part attribute using:
where att is the ATtribuite Title, and 999.0 is just a placeholder to ensure I create a number-type attribute (e.g. not a string).
When I do this, I get a dimensionless/unitless attribute in the part properties, but ultimately I would like to be able to create mass, volume and area attributes with the correct dimensions via the journal.
Is there a simple way to do this with SetUserAttribute (or something similar), or do I have to use the AttributePropertiesBuilder method and go through all that?
Thanks,
Jeff
I've got a journal that will create a part attribute using:
Code:
workPart.SetUserAttribute(att, -1, 999.0, Update.Option.Now)
where att is the ATtribuite Title, and 999.0 is just a placeholder to ensure I create a number-type attribute (e.g. not a string).
When I do this, I get a dimensionless/unitless attribute in the part properties, but ultimately I would like to be able to create mass, volume and area attributes with the correct dimensions via the journal.
Is there a simple way to do this with SetUserAttribute (or something similar), or do I have to use the AttributePropertiesBuilder method and go through all that?
Thanks,
Jeff