SolidWorks在二次开发,宏录制在装配体中添加一个零件,执行宏怎么老提示错误,请大家帮帮忙啊!
DimswAppAsObjectDimPartAsObjectDimboolstatusAsBooleanDimlongstatusAsLong,longwarnings...
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.AddComponent("C:\Documents and Settings\wuminghui\Desktop\525_1.SLDPRT", 0.001666847243598, 0.001666576356058, 0.001666847243598)
End Sub 展开
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.AddComponent("C:\Documents and Settings\wuminghui\Desktop\525_1.SLDPRT", 0.001666847243598, 0.001666576356058, 0.001666847243598)
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询