添加项目文件。

This commit is contained in:
GG Z
2026-02-23 14:58:05 +08:00
parent ce96926220
commit 771d780d6c
342 changed files with 33470 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
using System.Collections.Generic;
using Autodesk.Revit.DB;
namespace RevitJigSample.ExternalGraphics
{
public class JigDrawingServer : DrawingServer
{
public List<Line> LineList { get; set; }
public JigDrawingServer(Document doc)
: base(doc)
{
this.LineList = new List<Line>();
}
public override string GetName()
{
return "IMPACT Jig Drawing Server";
}
public override string GetDescription()
{
return "IMPACT Jig Drawing Server";
}
public XYZ BasePoint { get; set; }
public XYZ NextPoint { get; set; }
public override List<Line> PrepareProfile()
{
return LineList;
}
public override bool CanExecute(View view)
{
return true;
}
public override Outline GetBoundingBox(View view)
{
if (this.LineList.Count > 0)
{
return new Outline(
this.LineList[0].GetEndPoint(0),
this.LineList[0].GetEndPoint(1)
);
}
return null;
}
}
}