using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Colors;
namespace Lab1
{
public class Class1
{
#region Create Layer
[CommandMethod("creatlayer")]
public ObjectId createLayer()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
ObjectId layerId;
Database db = HostApplicationServices.WorkingDatabase;
Transaction tran;
tran = db.TransactionManager.StartTransaction();