blaze10
Computer
- Nov 27, 2020
- 3
Hi,
I want to update density of a component in an assembly.
I can't update the density using: setUserAttribute() because the density attribute is read-only.(I have tried to unlock it with setUserAttributeLock(), but I get an error saying I have insufficient privileges to perform this action)
Then I came across this API: UfSession.Modl.SetBodyDensity() which accepts body tag as input to update the density.
To use this API, I will need to convert the object from type component to Body which I am not able to do.
Please can someone help me with this?
Thank you!
I want to update density of a component in an assembly.
I can't update the density using: setUserAttribute() because the density attribute is read-only.(I have tried to unlock it with setUserAttributeLock(), but I get an error saying I have insufficient privileges to perform this action)
Then I came across this API: UfSession.Modl.SetBodyDensity() which accepts body tag as input to update the density.
To use this API, I will need to convert the object from type component to Body which I am not able to do.
Please can someone help me with this?
Thank you!