1 J7 v) X; d8 B) H- J0 {Dim Part As Object" s$ A& x1 |8 ]5 r
Dim boolstatus As Boolean5 F2 x, v$ M4 T! g# ?% A/ ~# H( L: ~. V8 N* G& i# p0 I3 l! ~
Dim longstatus As Long, longwarnings As Long
0 `6 W' D, s; J7 T
; R4 w1 ]. O2 K6 Z8 d) V6 \ DSub main(); {% N3 q' N; ?# @1 M
7 W7 n: Q- O; B! z% ^5 W
Set swApp = _
% h* @3 ]" y7 _Application.SldWorks# e; K% {% L- k. D) q( t o: s% y. c6 ^9 |/ X1 G
% J5 R6 R; d6 L" }5 G* HSet Part = swApp.ActiveDoc
- C/ l: n) z$ M6 s" VPart.SketchManager.InsertSketch True
/ G/ D6 ]0 [" ]Part.ClearSelection2 True
% P4 P. x3 D+ \8 sDim skSegment As Object5 U% d4 N, u+ f. z% q( ]
Set skSegment = Part.SketchManager.CreateCenterLine(-0.05, 0#, 0#, 0.05, 0#, 0#)( t" V. I$ S, V$ ]
5 F( t- g* o. [8 k$ g, uPart.SetPickMode7 _$ K- B. j0 N
Part.ClearSelection2 True
( X$ x. j* j3 T& Y2 N2 X tSet skSegment = Part.SketchManager.CreateCenterLine(0#, -0.05, 0#, -0#, 0.05, 0#)! {- s# l4 h) q
: L: a7 v2 V+ ?* gPart.SetPickMode/ R- h+ j2 B/ ]( y5 M9 k
1 }2 z8 r4 h& S) m7 r: D. ZPart.ClearSelection2 True( X B% K5 D: A; M+ h
End Sub2 a c, F' d$ g3 E; A& q, J9 j& u. ~; D
|