Function EntCopy(ByVal ent As Entity, ByVal sourcePt As Point3d, ByVal targetPt As Point3d) As ObjectId
Dim mt As Matrix3d = Matrix3d.Displacement(targetPt - sourcePt)
'Dim Copy As Entity = ent.GetTransformedCopy(mt)
Dim Copy As Entity = ent.Clone
Copy.TransformBy(mt)
AddEnt(Copy)
Return Copy.ObjectId
End Function
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |