久久久国产一区二区_国产精品av电影_日韩精品中文字幕一区二区三区_精品一区二区三区免费毛片爱

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

QQ登錄

只需一步,快速開始

搜索
查看: 2259|回復(fù): 2

求資源:SolidWorks API 幫助文檔

[復(fù)制鏈接]
1#
發(fā)表于 2016-11-10 13:49:45 | 只看該作者 |倒序?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)
' w0 t5 s( W: ]  u0 S! g" v% R6 W+ B- I1 s' p

# u# a6 C* U3 H4 t: }5 w9 b     Dim swapp As SldWorks.SldWorks7 H6 F4 e# |& ~  A! h8 A) D
     Set swapp = Application.SldWorks
1 z( t; x  o) \2 d6 V     Dim swmodel As SldWorks.ModelDoc29 @0 A% X: D$ I; K; I) w1 {/ O2 Z
     'Determine which option is selected3 u' A2 a) p$ g8 j" G
     'and connect to the modeldoc2 object; Q* m1 Y, o  Y' Q( k2 }
     If optPart.Value = True Then
9 E: L$ D7 x/ A2 r0 ~        Set swmodel = swapp.NewDocument(filedir + "APIPart.prtdot", 0, 0#, 0#)
- D+ S9 u, n2 r6 O     End If
" d( X' n; I6 [; j     If optAssy.Value = True Then% I. l+ x' F# I$ p9 U8 b
        Set swmodel = swapp.NewDocument(filedir + "APIassembly.asmdot", 0, 0#, 0#)3 h3 K5 b( s. a" D* C7 X
     End If
$ K) n& i& c. z+ i* \     If optDraw.Value = True Then5 Q+ T. V8 }6 e. {1 i
        Set swmodel = swapp.NewDocument(filedir + "APIdrawing.drwdot", 0, 0#, 0#)
1 ~: f+ m9 m/ F( g7 D% A7 O) q     End If
3#
 樓主| 發(fā)表于 2016-11-11 09:04:36 | 只看該作者
找到了,在幫助那個(gè)下拉的小三角那

本版積分規(guī)則

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

GMT+8, 2025-7-6 05:21 , Processed in 0.071014 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

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