摘要:
AutoCAD .net API中可以用如下代码来设置entity的颜色为bylayer,请注意 BYLAYER的colorIndex为256。很简单,光贴代码。 [CommandMethod("SetColorByLayer")]public void SetColorByLayer(){ObjectId objId = GetSelectEntity();using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction()){Ent 阅读全文