{"id":789,"date":"2020-11-16T19:52:28","date_gmt":"2020-11-17T03:52:28","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=789"},"modified":"2020-11-16T19:52:28","modified_gmt":"2020-11-17T03:52:28","slug":"138-get-the-name-of-a-collector-in-tcl","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/138-get-the-name-of-a-collector-in-tcl\/","title":{"rendered":"#138 Get the name of a collector in tcl"},"content":{"rendered":"<p>#138 Get the name of a collector in tcl<\/p>\n<p>To get the name of the component with ID 100:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nhm_getcollectorname comps 100\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#138 Get the name of a collector in tcl To get the name of the component with ID 100: hm_getcollectorname comps 100<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24,27],"tags":[],"class_list":["post-789","post","type-post","status-publish","format-standard","hentry","category-hypermesh","category-tcl"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-cJ","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":527,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/tcl-command-that-retrieves-the-x-component-of-a-force-of-id-12-defined-in-the-global-system\/","url_meta":{"origin":789,"position":0},"title":"Tcl commands","author":"gantovnik","date":"2020-05-06","format":false,"excerpt":"Tcl command that retrieves the x component of a force of ID 12 defined in the global system: [code language=\"python\"] set force_x [hm_getvalue loads id=12 dataname=comp1] [\/code] To retrieve the node that load 12 is applied to: [code language=\"python\"] set node_id [hm_getvalue loads id=12 dataname=node.id] [\/code] To retrieve the y\u2026","rel":"","context":"In &quot;tcl&quot;","block_context":{"text":"tcl","link":"https:\/\/gantovnik.com\/bio-tips\/category\/tcl\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":760,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/10\/127-create-rbe3-element-using-hypermesh-tcl\/","url_meta":{"origin":789,"position":1},"title":"#127 Create RBE3 element using tcl in HyperMesh","author":"gantovnik","date":"2020-10-29","format":false,"excerpt":"#127 Create RBE3 element using HyperMesh tcl To create an RBE3 element with dependent node 100 and independent nodes 101,102, and 103 with all of the nodes having all six degrees of freedom and a weight of 1.23 [code language=\"python\"] *createmark nodes 1 101 102 103 *createarray 3 123456 123456\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":940,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/08\/169-measures-the-shortest-distance-between-two-entity-selections-in-tcl-hypermesh\/","url_meta":{"origin":789,"position":2},"title":"#169 Measures the shortest distance between two entity selections in HyperMesh tcl","author":"gantovnik","date":"2021-08-26","format":false,"excerpt":"#169 Measures the shortest distance between two entity selections in HyperMesh tcl To get the shortest distance between nodes 100-200 and nodes 300-400: [code language=\"python\"] *createmark nodes 1 100-200 *createmark nodes 2 300-400 hm_measureshortestdistance nodes 1 0 nodes 2 0 0 [\/code] To get the shortest distance between surface 100\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":904,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/03\/163-call-one-tcl-script-from-another-tcl-script\/","url_meta":{"origin":789,"position":3},"title":"#163 Call one tcl script from another tcl script","author":"gantovnik","date":"2021-03-22","format":false,"excerpt":"[code language=\"python\"] puts \"Hello0!\" proc myfunc {} { source \"D:\/projects\/tcl_hypermesh\/example1\/hello1.tcl\" source \"D:\/projects\/tcl_hypermesh\/example1\/hello2.tbc\" } myfunc [\/code] Output: [code language=\"python\"] Hello0! Hello1! Hello2! [\/code]","rel":"","context":"In &quot;tcl&quot;","block_context":{"text":"tcl","link":"https:\/\/gantovnik.com\/bio-tips\/category\/tcl\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":956,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/09\/174-run-all-tcl-scripts-in-the-given-folder\/","url_meta":{"origin":789,"position":4},"title":"#174 Run all tcl scripts in the given folder","author":"gantovnik","date":"2021-09-20","format":false,"excerpt":"#174 Run all tcl scripts in the given folder [code language=\"python\"] set dir \"D:\/projects\/tcl\/test174\/tcl_files\" foreach script [glob -nocomplain -dir $dir *.tcl] { source $script } [\/code]","rel":"","context":"In &quot;tcl&quot;","block_context":{"text":"tcl","link":"https:\/\/gantovnik.com\/bio-tips\/category\/tcl\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4445,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/09\/447-command-loadsize-in-tcl-for-hypermesh\/","url_meta":{"origin":789,"position":5},"title":"#447 Command *loadsize in tcl for HyperMesh","author":"gantovnik","date":"2024-09-16","format":false,"excerpt":"This command is deprecated but can be found in old tcl scripts. It is replaced with setoption load_size_magnitude, *setoption load_size_type,\u00a0setoption load_size_uniform *loadsize Sets the display size of loads. Syntax *loadsize config size option scale Inputs config The load config to set. Valid values are: 1 \u2013 forces 2 \u2013 moments\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=789"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/789\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}