TCL Command to get CID of Bush element
Best Answer
-
sanket_patil said:
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
0
Answers
-
Can you share a small HM model with CBUSH elements (and CID data) ?
0 -
Q.Nguyen-Dai said:
Can you share a small HM model with CBUSH elements (and CID data) ?
ok
0 -
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?
0 -
0
-
Q.Nguyen-Dai said:
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?
Hello,
Yes this is working good Thank you so much for the help..!!!
Regards,
Sanket
0 -
0
-
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
0 -
sanket_patil said:
Hello,
Yes this is working good Thank you so much for the help..!!!
Regards,
Sanket
Please Mark as Correct answer if it helps you.
0 -
sanket_patil said:
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
0 -
Adriano Koga_20259 said:
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
0