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

 找回密碼
 注冊會員

QQ登錄

只需一步,快速開始

搜索
查看: 2298|回復: 2

求資源:SolidWorks API 幫助文檔

[復制鏈接]
1#
發表于 2016-11-10 13:49:45 | 只看該作者 |倒序瀏覽 |閱讀模式
在哪能找到SolidWorks API的幫助文檔?和SolidWorks的幫助文檔不一樣嗎,需要另外下載嗎?最近在學API,可是幫助文檔不知道在哪,只找到了visual basic參考,剛剛開始接觸,不是太懂,希望各位社友能給小弟指點一二
回復

使用道具 舉報

2#
 樓主| 發表于 2016-11-10 14:41:03 | 只看該作者
下面是我抄的部分代碼,可是怎么也新建不了新的文件,單擊按鈕就不管用,什么反應也沒有,加上斷點感覺程序也是執行了這幾句,但軟件就是沒反應4 ^- Q8 ~7 w! {9 L
0 A1 x0 S& Y1 P, V# C# T5 a

: P4 G, v+ z0 i* V4 }+ K! C, v     Dim swapp As SldWorks.SldWorks
! S) {2 K0 D; @6 ~+ ~+ e3 P) u     Set swapp = Application.SldWorks
; C' y: B1 |9 e5 h# Q! S- @     Dim swmodel As SldWorks.ModelDoc2
5 f" t" q/ ]3 u, J- q, I1 w! D     'Determine which option is selected! d# u: U* f% Z. s
     'and connect to the modeldoc2 object' p  j3 k) O) d! S9 J, P' U
     If optPart.Value = True Then
# C! K4 n$ e% u* k' R1 ~9 |        Set swmodel = swapp.NewDocument(filedir + "APIPart.prtdot", 0, 0#, 0#)) u4 Q) P) r3 U( m2 b1 D1 c6 n
     End If
$ v1 p3 E- P9 `3 a     If optAssy.Value = True Then
4 ~+ S6 V# R2 ~6 r        Set swmodel = swapp.NewDocument(filedir + "APIassembly.asmdot", 0, 0#, 0#)3 m) V3 w4 j2 @3 s- J& g2 R0 C
     End If
- e7 \5 ~. a+ b' p% d: D$ B7 d$ ]+ C     If optDraw.Value = True Then7 b! n! X- S' O1 ~8 u
        Set swmodel = swapp.NewDocument(filedir + "APIdrawing.drwdot", 0, 0#, 0#)$ M8 }5 G6 C7 e- |* N( h2 [3 v
     End If
3#
 樓主| 發表于 2016-11-11 09:04:36 | 只看該作者
找到了,在幫助那個下拉的小三角那
您需要登錄后才可以回帖 登錄 | 注冊會員

本版積分規則

Archiver|手機版|小黑屋|機械社區 ( 京ICP備10217105號-1,京ICP證050210號,浙公網安備33038202004372號 )

GMT+8, 2025-8-16 23:55 , Processed in 0.076098 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表