Find more posts tagged with
Sort by:
1 - 8 of
81
for {set i 5} {$i<=20} {incr i} {
*collectorcreateonly comps comp_t[expr 0.1*$i] '' 11
}
Hello Sir,
Thanks for your information.
I have created properties using above code. But I want to update thickness value according to the pro/comp name
Example:
thickness_t2.1 #comp name
thickness_t2.1. #prop name --- in this i want to update thickness according to the name i.e 2.1 and card image also(PSHELL) in the same loop.
Can anyone help me in this?
Thank you,
Hi,
You can use a logic similar to below:
set str_compname 'thickness_t2.1' set thickness [string trimleft [lindex [split $str_compname _] end] t] set str_prop [hm_getvalue comps name=$str_compname dataname=property.name] *setvalue prop name=$str_prop 95=$thickness; #95 is thickness dataname in Nastran user profile
Hi,
You can use a logic similar to below:
set str_compname 'thickness_t2.1' set thickness [string trimleft [lindex [split $str_compname _] end] t] set str_prop [hm_getvalue comps name=$str_compname dataname=property.name] *setvalue prop name=$str_prop 95=$thickness; #95 is thickness dataname in Nastran user profile
Thank you
for {set i 5} {$i<=20} {incr i} {
*collectorcreateonly comps comp_t[expr 0.1*$i] '' 11
}