在帮助里有一个例子,找到这个Sketch后,SW自动给所有的边、点都命了名,可以抓出来的。你好好读读help。还有一个方法,写程序的时候,当你输入点之后,程序自动给出所有的关于此对象的方法。根据这些提示,你进一步去找help。作者: ysun31 时间: 2008-7-15 01:12 标题: 类似于这种例子,瞎找的 Get Sketch Segment and Curve Data Example (VB)
This example shows how to get data about a sketch segment and curve.
'---------------------------------------------
'
' Preconditions:
' (1) Model document is open.
' (2) Sketch segment is selected.
'
' Postconditions: None
'
'---------------------------------------------
Option Explicit
Public Enum swSkSegments_e
swSketchLINE = 0
swSketchARC = 1
swSketchELLIPSE = 2
swSketchSPLINE = 3
swSketchTEXT = 4
swSketchPARABOLA = 5
End Enum
' Define two types
Type DoubleRec
dValue As Double
End Type
Type Long2Rec
iLower As Long
iUpper As Long
End Type
' Extract two integer values from of a single double value
' by assigning a DoubleRec to the double value and