+ |5 w# m* R6 g# n0 L! l作者: Lean_2017.feng 時(shí)間: 2024-4-10 09:40
以下方法說明,請(qǐng)自行測試: 9 D1 ~1 C7 T. r% n, O9 ?& ]# G0 P W
'Usage& h" x1 ]' [2 k( j
IModelDocExtension.SaveAs3(Name, Version, Options, ExportData, AdvancedSaveAsOptions, Errors, Warnings) ) }2 u w9 o3 f* V+ y- E 2 Z1 n8 R% R+ X' Q7 W; G' `5 |0 M* m( W/ E1 b: p
'Func Declaration* O) I( N4 x+ J8 G- d4 Q
Function SaveAs3( _" ~6 ~6 ? ^: h
ByVal Name As System.String, _, Q3 F; d& u1 Y0 q+ w6 N* a
ByVal Version As System.Integer, _; E3 \2 Q) M6 v7 V
ByVal Options As System.Integer, _# a# F. S3 y: B6 A0 z( ~% C4 M
ByVal ExportData As System.Object, _% s; {( u/ o- j: W2 m: K
ByVal AdvancedSaveAsOptions As System.Object, _" a4 L g, Q1 x2 x* x- M! I
ByRef Errors As System.Integer, _ ( |" W6 [/ x; { ] ByRef Warnings As System.Integer _' y+ t% O2 G6 m, U2 K" ^! Q6 u
) As System.Boolean' v m; L) ?) P K& ?
' i6 M+ x4 b4 R7 P4 T5 w
Parameters 6 t7 r% ^3 Y, Q/ D; s Name # j! t* c1 S* U% q- c9 C Full pathname of the document to save; the file extension indicates any conversion that should be performed (for example, Part1.igs to save in IGES format) (see Remarks)0 S7 M9 y0 M: a. A% D5 y( }
Version 3 M" y0 [# e7 O! Q# O* K
Format in which to save this document as defined in swSaveAsVersion_e (see Remarks) * j" v! a0 b; d$ D3 m7 G+ Z; p Options " M6 @. A; O0 F Option indicating how to save the document as defined in swSaveAsOptions_e (see Remarks) % ]5 Q& H1 H c( H ExportData 4 X" M3 W& _' N& Z IExportPdfData object for exporting drawing sheets to PDF (see Remarks) ! b' Z+ |% l0 v1 F# k AdvancedSaveAsOptions ( h! c# f; U- ^% g
IAdvancedSaveAsOptions (see Remarks). } x" X$ U2 S& r
Errors / @$ ?$ J8 U8 E% R/ H
Errors that caused the save to fail as defined in swFileSaveError_e (see Remarks) 5 h/ M4 ]6 d$ z7 N! s" G s Warnings ) T- d: e( V3 g0 M. S; @3 ^. V Warnings or extra information generated during the save operation as defined in swFileSaveWarning_e (see Remarks)4 C4 L- I2 M% a/ n5 B( l
Return Value" G1 g6 ]6 y' L. S: v
True if the save is successful, false if not! j# r9 f9 v0 @' S
; Y/ i- P L2 H5 E. q0 w( t6 N6 E- M
/ A5 X G8 d; `( H9 n6 B2 H內(nèi)容摘自apihelp.chm(通常存于 xxx\SOLIDWORKS Corp\SOLIDWORKS\api\ ). J6 o2 l5 ]% @" | ~# H
\! G( f& A$ r* Z$ }6 d
, _' V- `5 D! u$ N. y7 x2 y+ o
- @' `; {4 _$ s: S, _5 v