- Dim PL3DID As ObjectId = ObjectId.Null
- Using Trans As Transaction = Doc.TransactionManager.StartTransaction
- Dim PL3D As Polyline3d = Trans.GetObject(PL3DID, OpenMode.ForRead)
- For Each VID As ObjectId In PL3D
- Dim Vertex As PolylineVertex3d = Trans.GetObject(VID, OpenMode.ForWrite)
- Vertex.Position = Vertex.Position + New Vector3d(0.0, 0.0, Convert.ToDouble(Text_GC.Text))
- Next
- Trans.Commit()
- End Using
Dim PL3DID As ObjectId = ObjectId.Null 这个ID根据自己的实际情况替换 |