


{"id":282357,"date":"2023-05-04T15:35:06","date_gmt":"2023-05-04T15:35:06","guid":{"rendered":"\/forum\/?post_type=topic&#038;p=282357"},"modified":"2023-05-04T15:36:12","modified_gmt":"2023-05-04T15:36:12","slug":"scdm-scripting-parametric-selection-of-thread-flats-on-a-nut-and-bolt","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/scdm-scripting-parametric-selection-of-thread-flats-on-a-nut-and-bolt\/","title":{"rendered":"SCDM Scripting Parametric Selection of Thread Flats on a Nut and Bolt"},"content":{"rendered":"<p>Hello,&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I have a parametric inventor model that is loaded into Spaceclaim and Modified to be 2D geometry as shown below.&nbsp;<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683206394-mceclip0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683206394-mceclip0.png\" width=\"324\" height=\"299\"><\/a><\/p>\n<p>Using SCDM scripting in python, how can I find the flats (edges) on the nut geometry that contact the bolt flats (edges) and create named selections for each pair. For example: &nbsp;<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207467-mceclip1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207467-mceclip1.png\" width=\"254\" height=\"248\"><\/a> <a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207475-mceclip2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207475-mceclip2.png\" width=\"261\" height=\"257\"><\/a><\/p>\n<p>Named selections for the first thread shown above.&nbsp;<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207609-mceclip3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207609-mceclip3.png\" width=\"255\" height=\"251\"><\/a> <a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207610-mceclip4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/04-05-2023-1683207610-mceclip4.png\" width=\"255\" height=\"251\"><\/a><\/p>\n<p>Named selections for the second set of threads shown above, Etc.<\/p>\n<p>I can calculate the length of the flats from the pitch on the bolt and nut threads, in this case they&rsquo;re 0.111&#8243; in length.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-282357","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["23.220.96.181"],"_bbp_subscription":["11226","200"],"_btv_view_count":["405"],"_edit_lock":["1683214535:211878"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["282357"],"_bbp_forum_id":["27789"],"_bbp_engagement":["200","11226"],"_bbp_voice_count":["2"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["282964"],"_bbp_last_active_id":["282964"],"_bbp_last_active_time":["2023-05-09 08:31:34"]},"test":"jacob-garrisongdenergyproducts-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/282357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/282357\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=282357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}