本帖最后由 single-yu 于 2011-7-31 22:54 编辑
- Dim db As Database = HostApplicationServices.WorkingDatabase
- Using trans As Transaction = db.TransactionManager.StartTransaction
- Dim ent As Entity = trans.GetObject(ObjectId, OpenMode.ForWrite)
- If TypeOf (ent) Is Polyline Then
- Dim pl As Polyline = CType(ent, Polyline)
- Dim pt as point3d= pl.GetPoint3dAt(1)
- end If
- End Using
|