{"id":412,"date":"2009-07-17T18:00:10","date_gmt":"2009-07-17T09:00:10","guid":{"rendered":"https:\/\/www.iss.ai\/?p=412"},"modified":"2009-07-21T11:05:18","modified_gmt":"2009-07-21T02:05:18","slug":"solid-works-api%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e6%a4%9c%e8%a8%8e","status":"publish","type":"post","link":"https:\/\/www.iss.ai\/?p=412","title":{"rendered":"SolidWorks API\u306b\u95a2\u3059\u308b\u691c\u8a0e"},"content":{"rendered":"\t\t\t\t<p>\u25a0Solid Works API\u3000\u305d\u306e\uff11\u3000\u9762\u306e\u8272\u3092\u5909\u3048\u308b<\/p>\n\t\t\t\t<p>\u666e\u6bb5\u3001Solid Works\u4f7f\u3046\u3053\u3068\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u3042\u308b\u65e5Solid Works\u3067\u30e2\u30c7\u30ea\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u3002<br \/>\n\t\t\t\t\u7c21\u5358\u306a\u6a5f\u68b0\u90e8\u54c1\u3092\u30e2\u30c7\u30ea\u30f3\u30b0\u3057\u305f\u308a\u3001\u6642\u9593\u304c\u3042\u308b\u3068\u304d\u306f\u597d\u304d\u52dd\u624b\u306b\u8b0e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f\u308a\u3057\u305f\u3002<br \/>\n\t\t\t\t\u3042\u308b\u6642\u30de\u30af\u30ed\u306e\u5b58\u5728\u306b\u6c17\u3065\u3044\u305f\u3002\u30de\u30af\u30ed\u3067\u30e2\u30c7\u30eb\u3092\u3044\u308d\u3044\u308d\u64cd\u4f5c\u3067\u304d\u305f\u3089\u304a\u3082\u3057\u308d\u3044\u3068\u601d\u3044\u3001\u3061\u3087\u3063\u3068\u304b\u3058\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\t\t\t\t<p>\u30fb\u9762\u306e\u8272\u3092\u5909\u3048\u308b<\/p>\n\t\t\t\t<p>\u624b\u59cb\u3081\u306b\u9762\u306e\u8272\u3092\u5909\u3048\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u308b\u3053\u3068\u306b\u3002\u9762\u306e\u8272\u3092\u30bf\u30a4\u30de\u30fc\u304b\u4f55\u304b\u3067\u5b9a\u671f\u7684\u306b\u5909\u66f4\u3067\u304d\u308c\u3070\u30e2\u30c7\u30eb\u3092\u70b9\u6ec5\u3055\u305b\u308b\u3053\u3068\u304c<br \/>\n\t\t\t\t\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3001\u3068\u3002\u305d\u306e\u3068\u304d\u4f55\u3082\u77e5\u3089\u306a\u304b\u3063\u305f\u81ea\u5206\u306f\u305d\u3093\u306a\u3053\u3068\u3092\u6f20\u7136\u3068\u8003\u3048\u3066\u3044\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u30e2\u30c7\u30eb\u306e\u70b9\u6ec5\u3092\u76ee\u6a19\u306b\u4f5c\u696d\u958b\u59cb\u3002<br \/>\n\t\t\t\t\u307e\u305a\u3001API\u306b\u3064\u3044\u3066\u306e\u30d8\u30eb\u30d7\u3092\u958b\u304f\u3002\u82f1\u8a9e\u3060\u3002\u65e9\u304f\u3082\u304f\u3058\u3051\u305d\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n\t\t\t\t\u4f55\u306f\u3068\u3082\u3042\u308c\u3001\u8272\u3092\u5909\u66f4\u3059\u308b\u9762\u3092\u53d6\u5f97\u305b\u306d\u3070\u306a\u3089\u306a\u3044\uff08\u3060\u308d\u3046\uff09\u3002<br \/>\n\t\t\t\t\u82f1\u8a9e\u306e\u30d8\u30eb\u30d7\u3068\u683c\u95d8\u3057\u3064\u3064\u3001\u30cd\u30c3\u30c8\u3067\u60c5\u5831\u3092\u3042\u3055\u308a\u3064\u3064\u3001\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u30e2\u30c7\u30eb\u5168\u4f53\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001<br \/>\n\t\t\t\t\u305d\u3053\u304b\u3089\u30d5\u30a7\u30a4\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3044\u3046\u3088\u3046\u306b\u968e\u5c64\u7684\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3044\u3051\u3070\u9762\u307e\u3067\u305f\u3069\u308a\u7740\u3051\u305d\u3046\u3060\u3002<\/p>\n\t\t\t\t<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\t\t\t\t<p>\u307e\u305a\u59cb\u3081\u306b\u3001<\/p>\n\t\t\t\t<p>Set swApp = Application.SldWorks<\/p>\n\t\t\t\t<p>Set swModel = swApp.ActiveDoc<\/p>\n\t\t\t\t<p>\u30e2\u30c7\u30eb\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3002\u3067\u3001<\/p>\n\t\t\t\t<p>swModel.GetFeatureCount<\/p>\n\t\t\t\t<p>\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u306e\u6570\u3092\u53d6\u5f97\u3002\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u306e\u500b\u6570\u56de\u30eb\u30fc\u30d7\u3057\u3066<\/p>\n\t\t\t\t<p>Set swFeat = swModel.FeatureByPositionReverse()<\/p>\n\t\t\t\t<p>swFeat.Name<\/p>\n\t\t\t\t<p>\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u540d\u3092\u78ba\u8a8d\u3001\u304a\u76ee\u5f53\u3066\u306e\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u3092\u63a2\u3059\u3002\uff08\u3082\u3063\u3068\u52b9\u7387\u306e\u3044\u3044\u65b9\u6cd5\u304c\u3042\u308b\u3093\u3060\u308d\u3046\u306a\uff09<\/p>\n\t\t\t\t<p>vFaceArr = swFeat.GetFaces<\/p>\n\t\t\t\t<p>\u76ee\u5f53\u3066\u306e\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u306e\u30d5\u30a7\u30a4\u30b9\u3092\u3054\u3063\u305d\u308a\u53d6\u5f97\u3057\u3066\u3001<\/p>\n\t\t\t\t<p>For Each vFace In vFaceArr<\/p>\n\t\t\t\t<p>Set swFace = vFace<\/p>\n\t\t\t\t<p>swFace.MaterialPropertyValues = vFeatColor<\/p>\n\t\t\t\t<p>\u5168\u9762\u30eb\u30fc\u30d7\u3057\u3066\u8272\u306e\u8a2d\u5b9a\u3002<\/p>\n\t\t\t\t<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-482\" src=\"https:\/\/www.iss.ai\/wp-content\/uploads\/2009\/07\/img_12-200x300.jpg\" alt=\"img_1\" width=\"200\" height=\"300\" srcset=\"https:\/\/www.iss.ai\/wp-content\/uploads\/2009\/07\/img_12-200x300.jpg 200w, https:\/\/www.iss.ai\/wp-content\/uploads\/2009\/07\/img_12.JPG 898w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/p>\n\t\t\t\t<p>\u4f55\u3068\u304b\u5909\u308f\u3063\u305f\u3002<\/p>\n\t\t\t\t<p>\u30bf\u30a4\u30de\u30fc\u306f\u9762\u5012\u304f\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305awhile\u3067\u70b9\u6ec5\u3055\u305b\u308b\u3002<\/p>\n\t\t\t\t<p><a href=\"https:\/\/www.iss.ai\/?p=535\">SolidWorks API\u306b\u95a2\u3059\u308b\u691c\u8a0e\u2461<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0Solid Works API\u3000\u305d\u306e\uff11\u3000\u9762\u306e\u8272\u3092\u5909\u3048\u308b \u666e\u6bb5\u3001Solid Works\u4f7f\u3046\u3053\u3068\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u3042\u308b\u65e5Solid Works\u3067\u30e2\u30c7\u30ea\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u3002 \u7c21\u5358\u306a\u6a5f\u68b0\u90e8\u54c1\u3092\u30e2\u30c7\u30ea\u30f3\u30b0\u3057\u305f\u308a\u3001\u6642\u9593\u304c\u3042\u308b\u3068\u304d\u306f [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[13],"class_list":["post-412","post","type-post","status-publish","format-standard","hentry","category-soft","category-tech","tag-solidworks"],"_links":{"self":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=412"}],"version-history":[{"count":24,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":545,"href":"https:\/\/www.iss.ai\/index.php?rest_route=\/wp\/v2\/posts\/412\/revisions\/545"}],"wp:attachment":[{"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iss.ai\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}