{"id":557,"date":"2020-06-11T18:54:22","date_gmt":"2020-06-12T01:54:22","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=557"},"modified":"2021-10-06T16:45:03","modified_gmt":"2021-10-06T23:45:03","slug":"getmarkedentity-2017","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/06\/getmarkedentity-2017\/","title":{"rendered":"#80 GetMarkedEntity (2017)"},"content":{"rendered":"<p>::hwat::utils::GetMarkedEntity &#8220;components&#8221; 1 &#8220;by sets&#8221; set1<\/p>\n<p>Return a list containing the IDs of the entities, 0 if no entity is found and {} if unsuccessful.<\/p>\n<p>If any one of the arguments is list in Tcl, like [list 1 2 3] or {1 2 3}, use eval before GetMarkedEntity command. <\/p>\n<p>For example,<\/p>\n<p>set a {1 2 3}<br \/>\neval ::hwat::utils::GetMarkedEntity comps 1 \\&#8221;by assems\\&#8221; $a<\/p>\n<p>however<br \/>\n::hwat::utils::GetMarkedEntity comps 1 &#8220;by assems&#8221; 1 2 3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>::hwat::utils::GetMarkedEntity &#8220;components&#8221; 1 &#8220;by sets&#8221; set1 Return a list containing the IDs of the entities, 0 if no entity is found and {} if unsuccessful. If any one of the arguments is list in Tcl, like [list 1 2 3] or {1 2 3}, use eval before GetMarkedEntity command. For example, set a {1 2 [&hellip;]<\/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-557","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-8Z","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":532,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/hwat-example\/","url_meta":{"origin":557,"position":0},"title":"HWAT Example","author":"gantovnik","date":"2020-05-06","format":false,"excerpt":"There are 7 categories of HWAT functions, of which one is specific to Tk and the other 6 are for general Tcl usage. These categories are: 1) Core Function: Primarily helper functions and are not used directly in most cases. They are usually called from within other functions. 2) I\/O\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":787,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/137-get-thickness-of-the-specified-component-element-or-property-in-tcl\/","url_meta":{"origin":557,"position":1},"title":"#137 Get thickness of the specified component, element, or property in tcl","author":"gantovnik","date":"2020-11-16","format":false,"excerpt":"#137 Get thickness of the specified component, element, or property in tcl Get the thickness value of component 11 which has a PSHELL property with thickness of 0.25: Get the thickness value of component 15 which has a PCOMP property with 4 plys (thickness values of 0.1, 0.25, 0.25, 0.1,\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":763,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/128-moment-of-inertia-values-for-the-selected-entities-using-tcl-in-hypermesh\/","url_meta":{"origin":557,"position":2},"title":"#128 Moment-of-inertia values for the selected entities using tcl in HyperMesh","author":"gantovnik","date":"2020-11-02","format":false,"excerpt":"#128 Moment-of-inertia values for the selected entities using tcl in HyperMesh To get the MOI for components 1-5:","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":2017,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/01\/402-find-edge-nodes-of-mesh-and-create-node-sets-for-each-edge-using-tcl-script-in-hypermesh\/","url_meta":{"origin":557,"position":3},"title":"#402 Find edge nodes of mesh and create node sets for each edge loop using tcl script in HyperMesh","author":"gantovnik","date":"2024-01-07","format":false,"excerpt":"Assume we have this model: The script will find all edges and create set of nodes for each edge:","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/01\/ex402_3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":789,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/138-get-the-name-of-a-collector-in-tcl\/","url_meta":{"origin":557,"position":4},"title":"#138 Get the name of a collector in tcl","author":"gantovnik","date":"2020-11-16","format":false,"excerpt":"#138 Get the name of a collector in tcl To get the name of the component with ID 100:","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":1950,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/08\/388-hypermesh-tcl-script-to-calculate-total-area-of-all-components\/","url_meta":{"origin":557,"position":5},"title":"#388 HyperMesh tcl script to calculate total area of all components","author":"gantovnik","date":"2023-08-15","format":false,"excerpt":"Output:","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\/557","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=557"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/557\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}