22 lines
455 B
C#
22 lines
455 B
C#
|
|
using System;
|
||
|
|
using System.Linq;
|
||
|
|
|
||
|
|
using Autodesk.AutoCAD.DatabaseServices;
|
||
|
|
using Autodesk.AutoCAD.Geometry;
|
||
|
|
namespace Szmedi.CADkits;
|
||
|
|
|
||
|
|
public readonly struct TextWithPosition
|
||
|
|
{
|
||
|
|
public ObjectId ObjectId { get; }
|
||
|
|
|
||
|
|
public Point3d Position { get; }
|
||
|
|
|
||
|
|
public string TextContent { get; }
|
||
|
|
|
||
|
|
public TextWithPosition(ObjectId id, Point3d pos, string content)
|
||
|
|
{
|
||
|
|
ObjectId = id;
|
||
|
|
Position = pos;
|
||
|
|
TextContent = content;
|
||
|
|
}
|
||
|
|
}
|