{"id":582,"date":"2020-03-26T10:13:00","date_gmt":"2020-03-26T02:13:00","guid":{"rendered":"http:\/\/localhost:8080\/?p=582"},"modified":"2020-03-26T10:13:00","modified_gmt":"2020-03-26T02:13:00","slug":"c-solidworks-%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91-api-%e6%8f%90%e5%8d%87exe%e6%89%a7%e8%a1%8c%e6%95%88%e7%8e%87%e6%8e%a5%e8%bf%91dll","status":"publish","type":"post","link":"https:\/\/blog.ke-zhi.com\/?p=582","title":{"rendered":"C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u63d0\u5347exe\u6267\u884c\u6548\u7387\u63a5\u8fd1DLL"},"content":{"rendered":"<h1> <a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/p\/12897437.html\" target=\"_blank\" rel=\"nofollow noopener\"> <span>C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u63d0\u5347exe\u6267\u884c\u6548\u7387\u63a5\u8fd1DLL<\/span> <\/a> <\/h1>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6700\u8fd1\u4e00\u6bb5\u65f6\u95f4\u6ca1\u66f4\u65b0\u535a\u5ba2\uff0c\u539f\u56e0\u6bd4\u8f83\u591a\u3002\u4f5c\u4e3a\u6e56\u5317\u4eba\uff0c\u4eca\u5e74\u7684\u73ed\u4e0a\u7684\u4e0d\u5bb9\u6613\u3002\u5f53\u7136\u8fd8\u662f\u8981\u611f\u8c22\u5404\u5730\u7684\u652f\u63f4\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u4eca\u5929\u6765\u548c\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b\u4e00\u4e2a\u5173\u4e8eexe\u63d0\u5347\u6027\u80fd\u7684\u9009\u9879\uff0c\u56e0\u4e3a\u4e4b\u524d\u4e3b\u8981\u5199\u7684exe\u6bd4\u8f83\u591a\uff0c\u540e\u6765\u6539\u6210dll\u4e4b\u540e\u6548\u7387\u63d0\u5347\u5f88\u5927\uff0c\u4f46\u662f\u6700\u8fd1\u53d1\u73b0\u4e86\u4e00\u4e2a\u65b0\u5927\u9646\uff0c\u5728exe\u4e2d\u5927\u91cf\u8bfb\u53d6solidworks\u6587\u4ef6\u7684\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u5148\u901a\u8fc7swApp.CommandInProgress\u8fd9\u4e2a\u8bbe\u7f6e\u4e3aTrue \u6765\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u5148\u770b\u4e0bAPI\u5e2e\u52a9\u4e2d\u7684\u5b9a\u4e49\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u5927\u6982\u610f\u601d\u8981\u662f\u5148\u544a\u8bc9SOLIDWORKS\u51c6\u5907\u5728\u8fdb\u7a0b\u5916\u5c06\u8fdb\u884c\u4e00\u7cfb\u5217API\u8c03\u7528\uff0c\u63d0\u9ad8\u4e86\u8fdb\u7a0b\u5916\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/20200326100706367.png\" class=\"aligncenter\"><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u7ecf\u8fc7\u6d4b\u8bd5\uff0c\u5728\u505a\u4e00\u4e9b\u5927\u91cf\u8bfb\u53d6\u6570\u636e\u7684\u65f6\u5019\uff0c\u6027\u80fd\u76f8\u5bf9\u4e8e\u6ca1\u6709\u8bbe\u5b9a\u4e4b\u524d\u63d0\u9ad8\u4e86\u8fd14\u500d\uff0c\u7ed3\u679c\u548cdll\u7684\u5dee\u8ddd\u5df2\u7ecf\u4e0d\u592a\u5927\u4e86\uff0c\u56e0\u4e3aDLL\u91cc\u9762\u8c03\u8bd5\u6ca1\u6709exe\u65b9\u4fbf\uff0c\u8fd9\u6837\u8bbe\u5b9a\u4e4b\u540e\u53ef\u4ee5\u51cf\u5c11\u8c03\u8bd5\u6240\u9700\u7684\u65f6\u95f4\uff0c\u63d0\u9ad8\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width: 500px\">  \u672c\u5730\u65f6\u95f4\u6d4b\u8bd5  <\/p>\n<tbody>\n<tr>\n<td style=\"width: 326px\">Type<\/td>\n<td style=\"width: 161px\">Time<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 326px\">exe with CommandInProgress = Ture<\/td>\n<td style=\"width: 161px\">111s<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 326px\">exe with CommandInProgress = False<\/td>\n<td style=\"width: 161px\">460s<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 326px\">DLL<\/td>\n<td style=\"width: 161px\">78s<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 326px\">&nbsp;<\/td>\n<td style=\"width: 161px\">&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>          posted @<br \/>\n<span>2020-03-26 10:13<\/span>&nbsp;<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/\" target=\"_blank\" rel=\"nofollow noopener\">painezeng<\/a>&nbsp; \u9605\u8bfb(<br \/>\n<span>126<\/span>)&nbsp; \u8bc4\u8bba(<br \/>\n<span>0<\/span>)&nbsp;<br \/>\n<a href=\"https:\/\/i.cnblogs.com\/EditPosts.aspx?postid=12897437\" 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>C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u63d0\u5347exe\u6267\u884c\u6548\u7387\u63a5\u8fd1DLL &nbsp; &#038;n [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":583,"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-582","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-","category-solidworks","tag-api","tag-solidworks","tag-8"],"views":173,"_links":{"self":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/582","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=582"}],"version-history":[{"count":0,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/media\/583"}],"wp:attachment":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=582"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}