What is updated command for *materialupdate in latest HyperMesh 2021 version?
Hi Guys,
I want to know how to update material for property using tcl command.
In hm 2017 I used this: *materialupdate properties 1 "$mat_name"
I know that *materialupdate is deprecated and now we use *setvalue.
Does anyone has idea how should I write it in updated version?
Your help is much appreciated.
Thank You!
Answers
-
The following should work for you:
*setvalue prop mark=1 materialid=[hm_getvalue mat name="$mat_name" dataname=id]
2 -
Hi Ben,
Thanks for your response.
When I used the above command, it is giving error like:
hm_getvalue : Requires 3 parameters
In documentation of hm_getvalue, only 2 parameters are needed and others are optional.
Can you help?
My code look like this:
0 -
Akshay Manthekar said:
Hi Ben,
Thanks for your response.
When I used the above command, it is giving error like:
hm_getvalue : Requires 3 parameters
In documentation of hm_getvalue, only 2 parameters are needed and others are optional.
Can you help?
My code look like this:
There is a space between mat and name (not an underscore) so like below the three parameters are material(entity type), name=$mat_name(how you are identifying the desired entity) and dataname=id(what you want).
hm_getvalue material name=$mat_name dataname=id
0 -
Thanks a lot, Ben!!
This is exactly I was looking for
0