求一个.net编的批处理圆半径大小的范例
小弟最近在自学.net二次开发CAD,哪位大师有批处理圆半径大小的范例让小弟学习一下呀 Sub changeRad(IDs() As ObjectId, rad As Double)If rad <= 0 Then
Exit Sub
End If
Using Trans As Transaction = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction
Dim ent As DBObject = Nothing, cir As Circle = Nothing
For Each ID As Object In IDs
ent = Trans.GetObject(ID, OpenMode.ForWrite)
If TypeOf ent Is Circle Then
cir = ent
cir.Radius = rad
End If
Next
Trans.Commit()
End Using
End Sub
guohq 发表于 2011-10-27 12:32 static/image/common/back.gif
非常感谢,搞出来哒
页:
[1]