随笔分类 - Solidworks API
摘要:在平台VC++2005 ,VC++2010 或是VC+2012 上使用SolidWorks API SDK模板对Solidworks进行二次开发的时候新建了一个项目在生成的时候总是得到下面的错误信息,现将解决办法分享出来!Error Information:Error 1 fatal error C...
阅读全文
摘要:Function SelectByID2( _ ByVal Name As System.String, _ ByVal Type As System.String, _ ByVal X As System.Double, _ ByVal Y As System.Double, _ ...
阅读全文
摘要:1 'SolidWorks API Help 2 'Move Bodies Example (VB.NET) 3 'This example shows how to move all of the bodies in a part document. 4 5 '----------------...
阅读全文
摘要:1 Imports SolidWorks.Interop.sldworks 2 Imports SolidWorks.Interop.swconst 3 Imports System.Runtime.InteropServices 4 Imports System 5 6 Partial Cla...
阅读全文
摘要:1 Imports SolidWorks.Interop.sldworks 2 Imports SolidWorks.Interop.swconst 3 Imports System.Runtime.InteropServices 4 Imports System 5 6 Partial Cla...
阅读全文
摘要:1 SolidWorks API Help 2 Create PropertyManager Page Example (VB.NET) 3 This example shows how to create a PropertyManager page that contains two s...
阅读全文
摘要:相信大家经常会把solidworks api帮助中的代码直接贴出来直接使用,今天遇到段代码就无法使用。现分享一下经验: _Public Class clsPropMgr上面的代码就会报错:”特性说明符不是一个完整的语句。请使用行继续符将该特性应用于下列语句。“怎么解决呢?其实很简单!解决方法1:两行...
阅读全文
摘要:'建立装配基准面 '建立Top Plane boolstatus = swDoc.Extension.SelectByID2("", "FACE", 0, 0, 0, True, 0, Nothing, 0) myRefPlane = CType(swDoc.FeatureManager.InsertRefPlane(8, 0, 0, 0, 0, 0), RefPlane) boolstatus = swDoc.Extension.SelectByID2("Plane1", "PLANE", 0,
阅读全文
摘要:1 Dim swApp As Object2 3 '连接SW4 swApp = CreateObject("SldWorks.Application")
阅读全文