{"id":544,"date":"2020-05-12T15:37:03","date_gmt":"2020-05-12T22:37:03","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=544"},"modified":"2020-05-12T15:37:03","modified_gmt":"2020-05-12T22:37:03","slug":"how-to-write-a-code-to-know-certain-elements-belongs-to-which-components","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/how-to-write-a-code-to-know-certain-elements-belongs-to-which-components\/","title":{"rendered":"How to write a code to know certain elements belongs to which components ?"},"content":{"rendered":"<p>How to write a code to know certain elements belongs to which components ?<\/p>\n<p>set comp_id [hm_getvalue elems id=$elem_id dataname=collector.id]\n","protected":false},"excerpt":{"rendered":"<p>How to write a code to know certain elements belongs to which components ? set comp_id [hm_getvalue elems id=$elem_id dataname=collector.id]<\/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":[2],"tags":[],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","category-python"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-8M","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2124,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/02\/413-1d-elements-in-hypermesh\/","url_meta":{"origin":544,"position":0},"title":"#413 1D elements in HyperMesh","author":"gantovnik","date":"2024-02-05","format":false,"excerpt":"Bar elements: Bar2 = Configuration 60 (1st order) elements with 2 nodes used to model axial, bending, and torsion behavior. Bar2 elements have a property reference, an orientation vector, offset vectors and ends A and B, and pin flags at ends A and B. Bar3 = Configuration 63 - 1D\u2026","rel":"","context":"In &quot;fem&quot;","block_context":{"text":"fem","link":"https:\/\/gantovnik.com\/bio-tips\/category\/fem\/"},"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":544,"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":2241,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/07\/433-run-a-vba-macro-when-certain-cells-change-in-excel\/","url_meta":{"origin":544,"position":2},"title":"#433 Run a VBA macro when certain cells change in Excel","author":"gantovnik","date":"2024-07-08","format":false,"excerpt":"When you type an entry in cells A1:C10 on Sheet1, a message box is displayed. In the module sheet behind Sheet1 add this script","rel":"","context":"In &quot;excel&quot;","block_context":{"text":"excel","link":"https:\/\/gantovnik.com\/bio-tips\/category\/excel\/"},"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":544,"position":3},"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":[]},{"id":1460,"url":"https:\/\/gantovnik.com\/bio-tips\/2022\/05\/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\/","url_meta":{"origin":544,"position":4},"title":"#282 How to have mesh nodes at certain locations in HyperMesh?","author":"gantovnik","date":"2022-05-29","format":false,"excerpt":"Sometimes, we want to add points at specific locations to the mesh. For example, if we're going to create CBUSH elements. If we add mesh to the surface, points will not be in the mesh. But we can add points to the surface using: menu [Geom\/point edit] Then, if we\u2026","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\/2022\/05\/2022-05-29_020430.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/05\/2022-05-29_020430.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/05\/2022-05-29_020430.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"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":544,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/544","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=544"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}