標(biāo)題: 求資源:SolidWorks API 幫助文檔 [打印本頁(yè)] 作者: 飛鳥(niǎo)1991 時(shí)間: 2016-11-10 13:49 標(biāo)題: 求資源:SolidWorks API 幫助文檔 在哪能找到SolidWorks API的幫助文檔?和SolidWorks的幫助文檔不一樣嗎,,需要另外下載嗎,?最近在學(xué)API,,可是幫助文檔不知道在哪,,只找到了visual basic參考,,剛剛開(kāi)始接觸,,不是太懂,,希望各位社友能給小弟指點(diǎn)一二作者: 飛鳥(niǎo)1991 時(shí)間: 2016-11-10 14:41
下面是我抄的部分代碼,,可是怎么也新建不了新的文件,,單擊按鈕就不管用,什么反應(yīng)也沒(méi)有,,加上斷點(diǎn)感覺(jué)程序也是執(zhí)行了這幾句,,但軟件就是沒(méi)反應(yīng)) a% t5 t! a5 s
4 V' x7 ]: g2 F3 C
, ]1 g& N/ l+ Q+ |' R: d
Dim swapp As SldWorks.SldWorks ! _' f: P' @' t7 M8 F; I& o Set swapp = Application.SldWorks ! ], L0 b( _ _6 F8 T+ y Dim swmodel As SldWorks.ModelDoc2# R! i% s6 v/ Y' U$ v& q$ `- |
'Determine which option is selected' Z% I" P4 o/ M
'and connect to the modeldoc2 object$ h2 t: @2 J1 H# @4 K+ L+ `4 ~
If optPart.Value = True Then! U0 [; j. w, A- D- g
Set swmodel = swapp.NewDocument(filedir + "APIPart.prtdot", 0, 0#, 0#)* y1 t i- f6 U; y% e) V
End If T" R k2 F6 M8 F
If optAssy.Value = True Then . D: y( P3 K. m6 V" w- V- d' N Set swmodel = swapp.NewDocument(filedir + "APIassembly.asmdot", 0, 0#, 0#)6 d2 Q% b$ T. N( p# \6 D' m% S
End If& x+ A$ w' r5 ~( L# I! G" z7 c( ^
If optDraw.Value = True Then , q U& k' O# Y, ?6 \4 B! E Set swmodel = swapp.NewDocument(filedir + "APIdrawing.drwdot", 0, 0#, 0#) 5 H7 @0 T; i. r" L End If作者: 飛鳥(niǎo)1991 時(shí)間: 2016-11-11 09:04
找到了,在幫助那個(gè)下拉的小三角那