摘要: 1 Imports SolidWorks.Interop.sldworks 2 Imports SolidWorks.Interop.swconst 3 Imports System.Runtime.InteropServices 4 Imports System 5 6 Partial Cla... 阅读全文
posted @ 2015-03-17 10:18 SOLIDWORKS-API 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: 1 Imports SolidWorks.Interop.sldworks 2 Imports SolidWorks.Interop.swconst 3 Imports System.Runtime.InteropServices 4 Imports System 5 6 Partial Cla... 阅读全文
posted @ 2015-03-17 09:59 SOLIDWORKS-API 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-05-12 20:12 SOLIDWORKS-API 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 相信大家经常会把solidworks api帮助中的代码直接贴出来直接使用,今天遇到段代码就无法使用。现分享一下经验: _Public Class clsPropMgr上面的代码就会报错:”特性说明符不是一个完整的语句。请使用行继续符将该特性应用于下列语句。“怎么解决呢?其实很简单!解决方法1:两行... 阅读全文
posted @ 2014-05-12 20:08 SOLIDWORKS-API 阅读(737) 评论(0) 推荐(0) 编辑
摘要: '建立装配基准面 '建立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, 阅读全文
posted @ 2014-04-07 14:33 SOLIDWORKS-API 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: Dim myProcess As New Process() myProcess.StartInfo.FileName = "C:\Program Files\SolidWorks Corp\SolidWorks\SldWorks.exe" myProcess.StartInfo.CreateNoWindow = False myProcess.Start()要注意的是 代码中的 myProcess.StartInfo.CreateNoWindow = False 为程序在前台运行,如果= True的话则为后台运行! 阅读全文
posted @ 2014-04-07 14:17 SOLIDWORKS-API 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: 1 Dim swApp As Object2 3 '连接SW4 swApp = CreateObject("SldWorks.Application") 阅读全文
posted @ 2014-04-03 18:59 SOLIDWORKS-API 阅读(819) 评论(1) 推荐(0) 编辑