예제 #1
0
        /// <summary>
        /// Creates a 3D text in this dimension.
        /// </summary>
        /// <param name="text">The content of the 3D text</param>
        /// <param name="size">The size of the 3D text</param>
        /// <param name="pos">The position of the 3D text</param>
        /// <param name="rot">The rotation of the 3D text</param>
        /// <returns>The wrapped 3D text object</returns>
        public Text3D CreateText3D(string text, int size, Vector pos, Vector rot = null)
        {
            rot ??= Vector.Empty;
            Text3D text3d =
                _server.CreateText3D(Onset.CreateText3D(text, size, pos.X, pos.Y, pos.Z, rot.X, rot.Y, rot.Z));

            text3d.InternalText = text;
            text3d.SetDimension(Value);
            return(text3d);
        }