3 j# s! s1 P' m$ F3 O$ q* C# x
Dim Part As Object
( z `7 ?0 r2 f' Q. }( ]8 `Dim boolstatus As Boolean5 F2 x, v$ M4 T! g# ?% A/ ~# H
6 D) j, v( n6 F3 iDim longstatus As Long, longwarnings As Long9 a: s8 Y) d7 Y8 o/ n! y! }
; o3 U. k. z% z0 Q5 S' s1 p; kSub main()5 H' f6 ~2 R* D) U4 Y6 K3 O
* r4 w- ~+ y0 _- H; D" T
Set swApp = _' ?" Q% s$ h9 f) e8 {
Application.SldWorks# e; K% {% L- k. D) q
F& S6 O2 v" n* Q5 a5 T9 d6 b# I+ p) h
3 H" t9 y+ w' vSet Part = swApp.ActiveDoc
4 o6 D3 w) F& _ j/ n( JPart.SketchManager.InsertSketch True
6 W6 J% B/ I) \& O. i7 j" J% cPart.ClearSelection2 True! A& c$ p$ f/ Q, @5 L, w1 ]; a; c
Dim skSegment As Object
) m( n' r# r' ?( I* a+ zSet skSegment = Part.SketchManager.CreateCenterLine(-0.05, 0#, 0#, 0.05, 0#, 0#)( t" V. I$ S, V$ ]- l6 W" H" q# ~/ S0 R+ _& g
Part.SetPickMode# l8 y" i4 M8 \6 }, _2 z
Part.ClearSelection2 True
) H: W B. }3 k# _+ U( y* LSet skSegment = Part.SketchManager.CreateCenterLine(0#, -0.05, 0#, -0#, 0.05, 0#)! {- s# l4 h) q
% Q& t. v0 H7 U+ H) UPart.SetPickMode/ R- h+ j2 B/ ]( y5 M9 k
" o7 x8 |# Y% d' ~Part.ClearSelection2 True
( [ ^# X, r& i3 k' uEnd Sub8 O& i! [) C: |' d- k: b
|