2025-12-23 21:37:02 +08:00
|
|
|
|
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;
|
|
|
|
|
|
}
|
2026-02-23 11:21:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>ͨ<EFBFBD>ô洢 <20><><EFBFBD>ε㣨<CEB5><E3A3A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>壩<EFBFBD><E5A3A9><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
|
public readonly struct TerrainEntityInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
public ObjectId ObjectId { get; }
|
|
|
|
|
|
public Point3d Position { get; }
|
|
|
|
|
|
public string Handle { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public TerrainEntityInfo(ObjectId id, Point3d pos)
|
|
|
|
|
|
{
|
|
|
|
|
|
ObjectId = id;
|
|
|
|
|
|
Position = pos;
|
|
|
|
|
|
Handle = id.Handle.Value.ToString();
|
|
|
|
|
|
}
|
2025-12-23 21:37:02 +08:00
|
|
|
|
}
|