/// <summary> /// add entity to the given dxf object ( it can be Dxfdocument or Block ) /// optionally set layer /// </summary> public static void AddEntities(this DxfObject dxfObj, IEnumerable <EntityObject> ents, Layer layer = null) { foreach (var ent in ents) { dxfObj.AddEntity(ent, layer); } }
/// <summary> /// Creates and add dxf entities for a 3 axis of given length centered in given center point. /// </summary> public static IEnumerable <EntityObject> DrawStar(this DxfObject dxfObj, Vector3D center, double L, Layer layer = null) { var q = DxfKit.Star(center, L).ToList(); foreach (var line in q) { dxfObj.AddEntity(line, layer); } return(q); }