本帖最后由 作者 于 2004-5-31 23:57:32 编辑
贴个VBA的,可以打断直线、圆弧、圆和椭圆要引用TLSBOUNBARY类(不过Spline不支持) TLSBOUNBARY类:dispbbs.asp?boardID=4&ID=20994&page=2 - Sub Sample_TlsBoundary_Break()
- Dim pBoundary As New TlsBoundary
- Dim SS As AcadSelectionSet
- Dim pnts As Variant
- Dim i As AcadEntity
- Dim ft(0) As Integer, fd(0)
- ft(0) = 0
- fd(0) = "Line,Circle,Arc,Ellipse"
- Set SS = ThisDrawing.ActiveSelectionSet
- pBoundary.WorkSpace = SS
- SS.SelectOnScreen ft, fd
- pBoundary.BreakAllAtPoint
- End Sub
|