{"id":771,"date":"2020-11-06T01:34:38","date_gmt":"2020-11-06T09:34:38","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=771"},"modified":"2024-08-13T14:16:17","modified_gmt":"2024-08-13T21:16:17","slug":"130-use-a-panel-to-add-entities-to-a-mark-in-tcl-in-hypermesh","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/130-use-a-panel-to-add-entities-to-a-mark-in-tcl-in-hypermesh\/","title":{"rendered":"#130 Use a panel to add entities to a mark in tcl in HyperMesh"},"content":{"rendered":"<p>#130 Use a panel to add entities to a mark in tcl in HyperMesh<\/p>\n<p>To create a mark of elements in a panel:<\/p>\n<pre class=\"lang:python decode:true \" >\n*createmarkpanel elems 1 \"Please select the elements\"\nhm_getmark elems 1\n<\/pre>\n<p>To create a mark of elements in a panel using 2D faces as the default selection mode:<\/p>\n<pre class=\"lang:python decode:true \" >\n*createmarkpanel elems 1 \"Please select the elements\" 1\nhm_getmark elems 1\n<\/pre>\n<p>To create a mark of elements in a panel using 2D faces as the default selection mode, only allowing 2D faces and 2D faces ext modes:<\/p>\n<pre class=\"lang:python decode:true \" >\n*createmarkpanel elems 1 \"Please select the elements\" 1 6\nhm_getmark elems 1\n<\/pre>\n<p>*createmarkpanel entity_type mark_id message ?face_edge_mode? ?filter?<\/p>\n<p>?face_edge_mode?<br \/>\nThe default face\/edge selection mode to use when entering the panel. This is valid only for nodes and elements. An invalid value defaults to 0, or is ignored for non-supported entity types.<br \/>\n0 \u2013 Standard entity selection<br \/>\n1 \u2013 2D faces (elems) or faces (nodes)<br \/>\n2 \u2013 2D faces ext (elems and nodes)<br \/>\n3 \u2013 Free edges (nodes only)<br \/>\n4 \u2013 Edges (nodes only)<br \/>\n5 \u2013 Loops (nodes only)<br \/>\n6 &#8211; Free edges ext (nodes only)<br \/>\n7 &#8211; Edges ext (nodes only)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#130 Use a panel to add entities to a mark in tcl in HyperMesh To create a mark of elements in a panel: *createmarkpanel elems 1 &#8220;Please select the elements&#8221; hm_getmark elems 1 To create a mark of elements in a panel using 2D faces as the default selection mode: *createmarkpanel elems 1 &#8220;Please select [&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":[23,43],"class_list":["post-771","post","type-post","status-publish","format-standard","hentry","category-hypermesh","category-tcl","tag-hypermesh","tag-tcl"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-cr","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2235,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/06\/432-hypermesh-tcl-script-to-mark-and-print-all-adjacent-element-ids\/","url_meta":{"origin":771,"position":0},"title":"#432 Hypermesh tcl script to mark and print all adjacent element IDs","author":"gantovnik","date":"2024-06-30","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":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":1701,"url":"https:\/\/gantovnik.com\/bio-tips\/2022\/12\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2-2-2-2-2-3\/","url_meta":{"origin":771,"position":1},"title":"#322 Check types of selected elements in HyperMesh using tcl","author":"gantovnik","date":"2022-12-07","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":[]},{"id":947,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/09\/171-delete-the-difference-between-the-elements-on-marks-1-and-2-in-hypermesh-tcl\/","url_meta":{"origin":771,"position":2},"title":"#171 Delete the difference between the elements on marks 1 and 2 in HyperMesh tcl","author":"gantovnik","date":"2021-09-01","format":false,"excerpt":"#171 Delete the difference between the elements on marks 1 and 2 in HyperMesh tcl. *markdifference determines the difference between two marks and stores the results in the first mark. *createmark elems 1 1 2 3 4 *createmark elems 2 4 5 6 7 *markdifference elems 1 elems 2 *deletemark\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":1265,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/12\/133-create-vectors-and-planes-using-tcl-in-hypermesh-2\/","url_meta":{"origin":771,"position":3},"title":"#227 Delete all elements using tcl in HyperMesh","author":"gantovnik","date":"2021-12-14","format":false,"excerpt":"To delete all of the elements in the model: To delete the elements 50, 51, and 52 from a database:","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":771,"position":4},"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":775,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/132-delete-all-elements-using-tcl-in-hypermesh\/","url_meta":{"origin":771,"position":5},"title":"#132 Delete all elements using tcl in HyperMesh","author":"gantovnik","date":"2020-11-12","format":false,"excerpt":"#132 Delete all elements using tcl in HyperMesh To delete all elements: To delete elements 50 51 52:","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\/771","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=771"}],"version-history":[{"count":3,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":3635,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/771\/revisions\/3635"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}