tag:blogger.com,1999:blog-7274961.post6359410516564459314..comments2024-02-21T02:21:06.546-06:00Comments on Open Source, Computer-Aided Design, Pro/Toolkit, SolidWorks API: Batch mode SolidWorksAnonymoushttp://www.blogger.com/profile/09189272659983924981noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7274961.post-84582308718805740622017-07-03T07:34:16.796-05:002017-07-03T07:34:16.796-05:00Such a nice blog you wrote, I am glad to read it. ...Such a nice blog you wrote, I am glad to read it. It is so informative and helpful for designer like me. I have also something to share with you about perfect industrial designing and management also.<br> <br /><b><a href="http://cjtech.co.in/" rel="nofollow">Siemens CAD software</a></b><br> <br /><b><a href="http://cjtech.co.in/solid-edge-simulation" rel="nofollow">Solid edge CAM software</a></b><br> <br /><b><a href="http://cjtech.co.in/solid-edge-data-management" rel="nofollow">Siemens PLM software</a></b><br>Anonymoushttps://www.blogger.com/profile/13073610043090369469noreply@blogger.comtag:blogger.com,1999:blog-7274961.post-90812514686179975222013-07-03T11:24:15.670-05:002013-07-03T11:24:15.670-05:00Hi Ganeshram,
How can I run a VB macro while Soli...Hi Ganeshram,<br /><br />How can I run a VB macro while SolidWorks is in running without GUI. I tries implementing this in your code.<br /><br />================================================<br /><br />VARIANT_BOOL* n (NULL);<br />CComBSTR macroFilePath (L"C:\\Users\\rpt1g12\\Desktop\\Matlab\\createModel.swp");<br />CComBSTR moduleName ("createModel1");<br />CComBSTR functionName("main");<br /><br />swApp->RunMacro(macroFilePath,moduleName,functionName,n);<br /><br />================================================<br /><br />Thank You <br />RafaelPThttps://www.blogger.com/profile/16184110021535664250noreply@blogger.comtag:blogger.com,1999:blog-7274961.post-33538328393728379772013-07-03T11:22:41.759-05:002013-07-03T11:22:41.759-05:00This comment has been removed by the author.RafaelPThttps://www.blogger.com/profile/16184110021535664250noreply@blogger.comtag:blogger.com,1999:blog-7274961.post-74106830814144354692010-10-13T15:58:53.466-05:002010-10-13T15:58:53.466-05:00Hello nate, I don't know if you looked through...Hello nate, I don't know if you looked through the ZIP file and the code, but I have some sample code in there that opens a SLDPRT file and queries the open model document:<br /><br />e.g.:<br />===============================<br />IPartDoc *part;<br /><br />hres = swModel->QueryInterface(IID_IPartDoc, (LPVOID *)&part);<br /><br />swModel->put_Visible(FALSE);<br /> CComPtr swfeat;<br /> part->IFirstFeature(&swfeat);<br />===============================<br /><br />I hope that helps. Download the http://ossandcad.googlecode.com/files/swbatch.zip file and have a look at the specific lines in swbatch.cppAnonymoushttps://www.blogger.com/profile/09189272659983924981noreply@blogger.comtag:blogger.com,1999:blog-7274961.post-20124932303661580152010-10-12T20:32:23.351-05:002010-10-12T20:32:23.351-05:00once opened in silent mode: how might you interact...once opened in silent mode: how might you interact with the file?natehttps://www.blogger.com/profile/02122352350132607933noreply@blogger.com