{"id":588,"date":"2020-02-22T18:12:00","date_gmt":"2020-02-22T10:12:00","guid":{"rendered":"http:\/\/localhost:8080\/?p=588"},"modified":"2020-02-22T18:12:00","modified_gmt":"2020-02-22T10:12:00","slug":"c-solidworks-%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91-api-dll%e6%8f%92%e4%bb%b6%e5%a6%82%e4%bd%95%e8%ae%a9-winform-%e7%b1%bb%e4%bc%bcshowdialog%ef%bc%8c%e4%bd%86%e8%bf%98%e8%83%bd%e6%93%8d%e4%bd%9csol","status":"publish","type":"post","link":"https:\/\/blog.ke-zhi.com\/?p=588","title":{"rendered":"C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212;dll\u63d2\u4ef6\u5982\u4f55\u8ba9 winform \u7c7b\u4f3cShowDialog\uff0c\u4f46\u8fd8\u80fd\u64cd\u4f5csolidworks"},"content":{"rendered":"<h1> <a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/p\/12897440.html\" target=\"_blank\" rel=\"nofollow noopener\"> <span>C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212;dll\u63d2\u4ef6\u5982\u4f55\u8ba9 winform \u7c7b\u4f3cShowDialog\uff0c\u4f46\u8fd8\u80fd\u64cd\u4f5csolidworks<\/span> <\/a> <\/h1>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u8bb0\u5f55\u4e00\u4e0b\uff0c\u8fd9\u6b21\u770bapi\u5e2e\u52a9\u89e3\u51b3\u5230\u7684\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u7531\u4e8e\u4e4b\u524d\u6211\u90fd\u662f\u5148\u505a\u597d\u7684exe\u72ec\u7acb\u5f00\u53d1\uff0c\u540e\u6765\u6539\u6210\u63d2\u4ef6\u5f62\u5f0f\u540e\u9047\u5230\u7684\u95ee\u9898\u3002\u4ee5\u524d\u7ecf\u5e38\u5229\u7528\u7a97\u4f53\u7684ShowDialog\u7279\u6027\uff0c\u8ba9\u7a0b\u5e8f\u6682\u505c\uff0c\u8ba9\u7528\u6237\u8fdb\u884c\u5bf9\u8c61\u7684\u81ea\u5b9a\u4e49\u9009\u62e9\u64cd\u4f5c\uff0c\u4f46\u662f\u5230\u4e86dll\u4e2d\u51fa\u73b0\u4e86\u95ee\u9898\uff0c\u56e0\u4e3adll\u548csolidworks\u4e3b\u8fdb\u7a0b\u662f\u4e00\u4e2a\uff0c\u6240\u4ee5\u5f53\u7528\u4e86\u9875\u9762\u7684ShowDialog\u4e4b\u540e\uff0csolidworks\u5c31\u518d\u4e5f\u65e0\u6cd5\u64cd\u4f5c\u4e86\u3002\u8fd9\u4e2a\u95ee\u9898\u4e4b\u524d\u82b1\u4e86\u4e00\u5929\u591a\u65f6\u95f4\u90fd\u6ca1\u641e\u5b9a\uff0c\u60f3\u4e86\u597d\u591a\u529e\u6cd5\uff0c\u6700\u540e\u5229\u7528\u7684doevents\u89e3\u51b3\u7684\uff0c\u4f46\u662f\u6548\u679c\u4e0d\u662f\u7279\u522b\u597d\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u539f\u6765solidworks\u7684\u5e2e\u52a9\u6587\u4ef6\u4e2d\u5df2\u7ecf\u6709\u4e86\u89e3\u51b3\u65b9\u6848\uff1a \u53ea\u9700\u8981\u4f7f\u7528&nbsp;Application.Run(winform)\u5c31\u53ef\u4ee5\u4e86\uff0c\u6211\u521a\u624d\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u5f88\u597d\u7528\uff0c\u81f3\u4e8e\u8fd8\u6709\u6ca1\u6709\u522b\u7684\u95ee\u9898\uff0c\u540e\u9762\u518d\u6d4b\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/20200222180804515.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\" class=\"aligncenter\"><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53c2\u8003\u94fe\u63a5\uff1a<\/p>\n<p><a href=\"http:\/\/help.solidworks.com\/2012\/English\/api\/sldworksapiprogguide\/overview\/Keystrokes_and_Accelerator_Keys_and_ActiveX_Modeless_Dialogs_and_PropertyManager_Pages.htm\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/help.solidworks.com\/2018\/English\/api\/sldworksapiprogguide\/overview\/Keystrokes_and_Accelerator_Keys_and_ActiveX_Modeless_Dialogs_and_PropertyManager_Pages.htm<\/a><\/p>\n<p>          posted @<br \/>\n<span>2020-02-22 18:12<\/span>&nbsp;<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/\" target=\"_blank\" rel=\"nofollow noopener\">painezeng<\/a>&nbsp; \u9605\u8bfb(<br \/>\n<span>131<\/span>)&nbsp; \u8bc4\u8bba(<br \/>\n<span>0<\/span>)&nbsp;<br \/>\n<a href=\"https:\/\/i.cnblogs.com\/EditPosts.aspx?postid=12897440\" 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;dll\u63d2\u4ef6\u5982\u4f55\u8ba9 winform \u7c7b\u4f3cShowDi [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":589,"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-588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-","category-solidworks","tag-api","tag-solidworks","tag-8"],"views":193,"_links":{"self":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/588","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=588"}],"version-history":[{"count":0,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/media\/589"}],"wp:attachment":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}