三维绘图.net
<P>Public Function AddBox(ByVal lengthAlongX As Double, ByVal lengthAlongY As Double, ByVal lengthAlongZ As Double, ByVal LayerName As String) As ObjectId<BR> MsgBox("长方体box,存在一个问题,不能设置3d实体的位置")<BR> Dim mybox As New Solid3d</P><P> '不能设置3d实体的位置<BR> Dim intC As New IntegerCollection<BR> intC.Add(200)<BR> intC.Add(200)<BR> intC.Add(80)<BR> Dim offset As Vector3d<BR> offset = Vector3d.ZAxis<BR> mybox.MoveGripPointsAt(intC, New Vector3d(200, 200, 0))<BR> '不能设置3d实体的位置<BR> mybox.Layer = LayerName<BR> mybox.CreateBox(lengthAlongX, lengthAlongY, lengthAlongZ)<BR> Return AddEntity(mybox)<BR> End Function<BR> <CommandMethod("mybox")> Public Sub myBox()<BR> AddLayer("PPBlogLayer", PublicClass.PPColor.Green, LineWeight.LineWeight080, "CENTER")<BR> AddBox(200, 200, 100, "PPBlogLayer")</P>
<P> End Sub</P>
页:
[1]