机械社区

 找回密码
 注册会员

QQ登录

只需一步,快速开始

搜索
查看: 2099|回复: 2

求资源:SolidWorks API 帮助文档

[复制链接]
发表于 2016-11-10 13:49:45 | 显示全部楼层 |阅读模式
在哪能找到SolidWorks API的帮助文档?和SolidWorks的帮助文档不一样吗,需要另外下载吗?最近在学API,可是帮助文档不知道在哪,只找到了visual basic参考,刚刚开始接触,不是太懂,希望各位社友能给小弟指点一二
回复

使用道具 举报

 楼主| 发表于 2016-11-10 14:41:03 | 显示全部楼层
下面是我抄的部分代码,可是怎么也新建不了新的文件,单击按钮就不管用,什么反应也没有,加上断点感觉程序也是执行了这几句,但软件就是没反应% s' U: y) L# }# k$ G' M

/ h: `7 U- O+ F# B0 M8 b/ v, G5 I8 E3 J0 P8 w& x' ]
     Dim swapp As SldWorks.SldWorks
) L- l/ x7 d3 X     Set swapp = Application.SldWorks. _; K& m# M: d5 }" B' I6 H
     Dim swmodel As SldWorks.ModelDoc2
% _9 }1 C( S9 v& b, j* z( w     'Determine which option is selected
* C- G  Y( m7 C  \     'and connect to the modeldoc2 object  C% P2 s) b! a+ V# D! c. R9 |  Z4 u
     If optPart.Value = True Then1 o0 ^3 r- X2 F0 g/ H' _0 @
        Set swmodel = swapp.NewDocument(filedir + "APIPart.prtdot", 0, 0#, 0#)
# I  R2 o3 c% {4 G     End If3 S( x0 h( ^% U( C4 \
     If optAssy.Value = True Then8 ?# e6 L/ T1 C* A
        Set swmodel = swapp.NewDocument(filedir + "APIassembly.asmdot", 0, 0#, 0#)* ^8 I( h) Q. T+ d- g
     End If
8 L0 Q. [  g9 N+ |) o1 j     If optDraw.Value = True Then" `. c: @. L5 z/ [$ |3 o; A+ P
        Set swmodel = swapp.NewDocument(filedir + "APIdrawing.drwdot", 0, 0#, 0#)7 C0 u( @$ n3 U
     End If
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-11-11 09:04:36 | 显示全部楼层
找到了,在帮助那个下拉的小三角那
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

小黑屋|手机版|Archiver|机械社区 ( 京ICP备10217105号-1,京ICP证050210号,浙公网安备33038202004372号 )

GMT+8, 2025-2-24 04:15 , Processed in 0.068971 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表