Find more posts tagged with
Here's my solution to try:
1. Create a file "cbush.tpl" with following code:
*codename(nastran,1) *defineattribute(CBCID,838,entity,none) *elements(21,6,"CBUSH","") *sortelements(byid) *format() *string("CBUSH ") *fieldright(integer,id,0) *string(" ") *fieldright(integer,node1.id,0) *string(" ") *fieldright(integer,node2.id,0) *string(" ") *fieldright(integer,$CBCID,0) *end() *output()
2. Create a script "cbush.tcl" with following code (define your path!):
set tpl {C:/Users/toto/cbush.tpl} set output {C:/Users/toto/cbush.txt} *usercheck $tpl $output 0
3. Run script "cbush.tcl" from open session of your model to get "cbush.txt"
CBUSH 761293 532712 526424 10001 CBUSH 761294 532713 527449 10001 CBUSH 761295 532714 525353 10001 CBUSH 761296 532715 527895 10001 CBUSH 761297 532880 527908 10001 CBUSH 761298 532881 527934 10001 CBUSH 761299 532882 527916 10001 CBUSH 761300 532883 527884 10001 CBUSH 761301 532913 527930 10001 CBUSH 761302 532918 527527 10001 CBUSH 761303 532919 530197 10001 CBUSH 761304 533022 529974 10001 CBUSH 761305 533032 530946 10001 CBUSH 761306 533035 530939 10001 ...
Tell me if that helps you?
Here's my solution to try:
1. Create a file "cbush.tpl" with following code:
*codename(nastran,1) *defineattribute(CBCID,838,entity,none) *elements(21,6,"CBUSH","") *sortelements(byid) *format() *string("CBUSH ") *fieldright(integer,id,0) *string(" ") *fieldright(integer,node1.id,0) *string(" ") *fieldright(integer,node2.id,0) *string(" ") *fieldright(integer,$CBCID,0) *end() *output()2. Create a script "cbush.tcl" with following code (define your path!):
set tpl {C:/Users/toto/cbush.tpl} set output {C:/Users/toto/cbush.txt} *usercheck $tpl $output 03. Run script "cbush.tcl" from open session of your model to get "cbush.txt"
CBUSH 761293 532712 526424 10001 CBUSH 761294 532713 527449 10001 CBUSH 761295 532714 525353 10001 CBUSH 761296 532715 527895 10001 CBUSH 761297 532880 527908 10001 CBUSH 761298 532881 527934 10001 CBUSH 761299 532882 527916 10001 CBUSH 761300 532883 527884 10001 CBUSH 761301 532913 527930 10001 CBUSH 761302 532918 527527 10001 CBUSH 761303 532919 530197 10001 CBUSH 761304 533022 529974 10001 CBUSH 761305 533032 530946 10001 CBUSH 761306 533035 530939 10001 ...
Tell me if that helps you?
Hello,
Yes this is working good Thank you so much for the help..!!!
Regards,
Sanket
1Hi @sanket_patil
You could use the following command:
hm_getvalue elems id=761293 dataname=\$CBCID
Hello,
Thank you so much for help
Regards,
Sanket
Hello everyone,
I was referring the datanames from the hypermesh reference guide, but dataname \$CBCID was not given there. where can i find these other datanames? Please share the path for it. it will help me a lot.
Regards,
Sanket
Hi,
datanames section will describe only the general datanames valid for all solvers.
For solver specific datanames, there are these "codes" that you can request. You can either call them by these names or their ID_codes.
For getting these, I usually run this script from the installation, and select the entity that i want to check what datanames are available, and it shows a list of them.
"D:\Program Files\Altair\2020.1\hwdesktop\hm\examples\scripts\entity_attribute_table.tcl"
In the example below, for OptiStruct you could retrieve the element angle by using the dataname=\$THETA
Hi,
datanames section will describe only the general datanames valid for all solvers.
For solver specific datanames, there are these "codes" that you can request. You can either call them by these names or their ID_codes.
For getting these, I usually run this script from the installation, and select the entity that i want to check what datanames are available, and it shows a list of them.
"D:\Program Files\Altair\2020.1\hwdesktop\hm\examples\scripts\entity_attribute_table.tcl"
In the example below, for OptiStruct you could retrieve the element angle by using the dataname=\$THETA
Thank you so much. This is a big help for me
Regards,
Sanket
Hello everyone,
I was referring the datanames from the hypermesh reference guide, but dataname \$CBCID was not given there. where can i find these other datanames? Please share the path for it. it will help me a lot.
Regards,
Sanket
Hi,
datanames section will describe only the general datanames valid for all solvers.
For solver specific datanames, there are these "codes" that you can request. You can either call them by these names or their ID_codes.
For getting these, I usually run this script from the installation, and select the entity that i want to check what datanames are available, and it shows a list of them.
"D:\Program Files\Altair\2020.1\hwdesktop\hm\examples\scripts\entity_attribute_table.tcl"
In the example below, for OptiStruct you could retrieve the element angle by using the dataname=\$THETA
Can you share a small HM model with CBUSH elements (and CID data) ?