{"id":672,"date":"2019-09-16T14:34:00","date_gmt":"2019-09-16T06:34:00","guid":{"rendered":"http:\/\/localhost:8080\/?p=672"},"modified":"2019-09-16T14:34:00","modified_gmt":"2019-09-16T06:34:00","slug":"vba-solidworks-%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91-api-%e4%bb%8e%e5%ae%8f%e5%bc%80%e5%a7%8b","status":"publish","type":"post","link":"https:\/\/blog.ke-zhi.com\/?p=672","title":{"rendered":"VBA SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212;\u4ece\u5b8f\u5f00\u59cb"},"content":{"rendered":"<h1> <a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/p\/12897485.html\" target=\"_blank\" rel=\"nofollow noopener\"> <span>VBA SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212;\u4ece\u5b8f\u5f00\u59cb<\/span> <\/a> <\/h1>\n<p>Macro\u662f\u53ef\u4ee5\u7528\u6765\u5f55\u5236\u4e00\u4e9b\u64cd\u4f5c\u7684\u5de5\u5177\uff0c\u7136\u540e\u4f60\u53ef\u4ee5\u770b\u5230\u5177\u4f53\u5185\u90e8\u6267\u884c\u7684\u4e00\u4e9b\u4ee3\u7801\u3002\u901a\u8fc7\u8fd9\u4e9b\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u5feb\u66f4\u76f4\u63a5\u7684\u627e\u5230\u6240\u9700\u8981\u67e5\u8be2\u7684API\u51fd\u6570\u3002\u6211\u4eec\u4ee5\u6700\u7b80\u5355\u7684\u505a\u4e00\u4e2a\u62c9\u4f38\u7279\u5f81\u5f00\u59cb\uff0c\u770b\u5982\u4f55\u627e\u5230\u5bf9\u5e94\u7684API<\/p>\n<p>1.\u663e\u793aMacro\u5de5\u5177\u6761\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916133134810.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>2. \u70b9\u51fb\u5de5\u5177\u6761\u4e0a\u7684\u5f55\u5236\u6309\u94ae\uff0c\u7136\u540e\u624b\u52a8\u8fdb\u884c\u96f6\u4ef6\u7684\u65b0\u5efa\uff0c\u9009\u62e9\u4e00\u4e2a\u57fa\u51c6\u9762\uff0c\u753b\u4e00\u4e2a\u5706\uff0c\u62c9\u4f38\u7279\u5f81\u3002\u7136\u540e\u70b9\u51fb\u5de5\u5177\u6761\u7684\u505c\u6b62\u6309\u94ae\uff0c\u6307\u5b9a\u4fdd\u5b58\u8def\u5f84\u4ee5\u53ca\u6587\u4ef6\u540d\u3002 \u6700\u540e\u70b9\u51fb\u7f16\u8f91\u5b8f\uff0c\u9009\u62e9\u521a\u521a\u4fdd\u5b58\u7684\u6587\u4ef6\u3002<\/p>\n<p>3.\u90a3\u4e48\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\u521a\u624d\u5f55\u5236\u64cd\u4f5c\u4ee3\u7801\u4e86\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916141811688.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>4. \u5728\u4e0d\u592a\u719f\u6089\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5728VBA\u7684\u754c\u9762\u4e0a\uff0c\u8fdb\u5165\u5230Main\u4ee3\u7801\u4e4b\u540e\uff0c\u6309F8,\u8fdb\u884c\u9010\u6b65\u8c03\u8bd5\uff0c\u770b\u54ea\u4e00\u6b65\u662f\u6211\u4eec\u60f3\u4e86\u89e3\u7684\u64cd\u4f5c\u3002<\/p>\n<p>5.\u5728\u6211\u4eec\u77e5\u9053&nbsp;FeatureExtrusion2 \u8fd9\u4e00\u6b65\u662f\u521b\u5efa\u62c9\u4f38\u7279\u5f81\u4e4b\u540e \uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u53bbAPI\u5e2e\u52a9\u91cc\u9762\u67e5\u8be2\u5bf9\u5e94\u7684API\u4e86\u3002&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916142831706.png\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916142849683.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>\u8fdb\u53bb\u4e4b\u540e \uff0c\u6ce8\u610f\u8981\u627e\u5230\u6700\u65b0\u7684\uff0c\u6709\u5f88\u591a\u65e7\u7684API\u5df2\u7ecf\u88ab\u5f03\u7528\u4e86\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916142916129.png\"><\/p>\n<p>\u8fd9\u4e2a\u624d\u662f\u6700\u65b0\u7684\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20190916143037919.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>\u7136\u540e\u67e5\u8be2\u7ed3\u679c\u4e2d\u8fd8\u6709\u4e00\u4e9b\u793a\u4f8b(\u540e\u9762\u4ee5Example(VBA C# VB.net)\u7684)\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u8fdb\u884c\u6df1\u5165\u5b66\u4e60\u3002<\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e9b\u5b8f\u64cd\u4f5c\u65e0\u6cd5\u5f55\u5236\u51fa\u6765\u7684\u547d\u4ee4\uff0c\u53ea\u80fd\u901a\u8fc7API\u5e2e\u52a9\u53bb\u627e\u5bf9\u5e94\u7684\u4fe1\u606f\u4e86\u3002<\/p>\n<p>\u5efa\u8bae\u628asolidworks\u8bbe\u8ba1\u4e3a\u82f1\u6587\u754c\u9762\uff0c\u8fd9\u4e2a\u6709\u52a9\u4e8e\u5728\u5e2e\u52a9\u4e2d\u67e5\u627e\u5230\u5bf9\u5e94\u7684\u4fe1\u606f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>          posted @<br \/>\n<span>2019-09-16 14:34<\/span>&nbsp;<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/\" target=\"_blank\" rel=\"nofollow noopener\">painezeng<\/a>&nbsp; \u9605\u8bfb(<br \/>\n<span>287<\/span>)&nbsp; \u8bc4\u8bba(<br \/>\n<span>0<\/span>)&nbsp;<br \/>\n<a href=\"https:\/\/i.cnblogs.com\/EditPosts.aspx?postid=12897485\" rel=\"nofollow noopener\" target=\"_blank\">\u7f16\u8f91<\/a>&nbsp;<br \/>\n<a href=\"\" target=\"_blank\" rel=\"nofollow noopener\">\u6536\u85cf<\/a>&nbsp;<br \/>\n<a href=\"\" target=\"_blank\" rel=\"nofollow noopener\">\u4e3e\u62a5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBA SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212;\u4ece\u5b8f\u5f00\u59cb Macro\u662f\u53ef\u4ee5\u7528\u6765\u5f55\u5236\u4e00\u4e9b\u64cd\u4f5c\u7684\u5de5\u5177 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":673,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,5],"tags":[7,6,8],"series":[],"class_list":["post-672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-","category-solidworks","tag-api","tag-solidworks","tag-8"],"views":185,"_links":{"self":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=672"}],"version-history":[{"count":0,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/672\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/media\/673"}],"wp:attachment":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=672"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}