16 lines
439 B
C#
16 lines
439 B
C#
using Autodesk.AutoCAD.ApplicationServices;
|
|
using CadParamPluging.Domain.Models;
|
|
|
|
namespace CadParamPluging.Cad
|
|
{
|
|
public static class TemplateDrawingService
|
|
{
|
|
public static Document CreateDocumentFromTemplate(TemplateInfo template)
|
|
{
|
|
var doc = Application.DocumentManager.Add(template.FilePath);
|
|
Application.DocumentManager.MdiActiveDocument = doc;
|
|
return doc;
|
|
}
|
|
}
|
|
}
|