機(jī)械社區(qū)

 找回密碼
 注冊(cè)會(huì)員

QQ登錄

只需一步,快速開始

搜索
查看: 1977|回復(fù): 2
打印 上一主題 下一主題

求資源:SolidWorks API 幫助文檔

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
1#
發(fā)表于 2016-11-10 13:49:45 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
在哪能找到SolidWorks API的幫助文檔?和SolidWorks的幫助文檔不一樣嗎,需要另外下載嗎?最近在學(xué)API,可是幫助文檔不知道在哪,只找到了visual basic參考,剛剛開始接觸,不是太懂,希望各位社友能給小弟指點(diǎn)一二
回復(fù)

使用道具 舉報(bào)

2#
 樓主| 發(fā)表于 2016-11-10 14:41:03 | 只看該作者
下面是我抄的部分代碼,可是怎么也新建不了新的文件,單擊按鈕就不管用,什么反應(yīng)也沒有,加上斷點(diǎn)感覺程序也是執(zhí)行了這幾句,但軟件就是沒反應(yīng)1 a; Q+ u) [2 [6 s0 {
% ~1 v: ?+ L! t+ [  p: P' ?6 ~
0 a+ y0 C* {2 I# ?6 I8 o, |" n
     Dim swapp As SldWorks.SldWorks* n9 [5 b4 x! {! G1 r
     Set swapp = Application.SldWorks
% k. z1 H) D- j     Dim swmodel As SldWorks.ModelDoc23 Y1 d2 M; V0 q' @/ `5 J1 \
     'Determine which option is selected
; h3 J2 i2 l# i0 Q- b# P# y     'and connect to the modeldoc2 object
) u4 @/ [' P9 c/ b! Q     If optPart.Value = True Then
9 J- Q# C' M. c0 z" X  Y+ }        Set swmodel = swapp.NewDocument(filedir + "APIPart.prtdot", 0, 0#, 0#)
! n3 x% o- u* F9 W     End If
7 _+ z; V' w& {! C) @     If optAssy.Value = True Then) A* A+ N& \2 a. k
        Set swmodel = swapp.NewDocument(filedir + "APIassembly.asmdot", 0, 0#, 0#)! _& Z$ c( i. W7 B, Y- M" P0 X
     End If. W% J) r+ q& G
     If optDraw.Value = True Then) d3 l9 Z6 L: {; Y* y8 {
        Set swmodel = swapp.NewDocument(filedir + "APIdrawing.drwdot", 0, 0#, 0#)+ ]2 S- ]& \  K3 O& X( i
     End If
3#
 樓主| 發(fā)表于 2016-11-11 09:04:36 | 只看該作者
找到了,在幫助那個(gè)下拉的小三角那

本版積分規(guī)則

小黑屋|手機(jī)版|Archiver|機(jī)械社區(qū) ( 京ICP備10217105號(hào)-1,京ICP證050210號(hào),浙公網(wǎng)安備33038202004372號(hào) )

GMT+8, 2024-9-27 23:31 , Processed in 0.054265 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回復(fù) 返回頂部 返回列表