Hello,
I am using the RealDWG2015 sdk. I am using it to export into dwg my own representation.
Basically I create the layer first and I assign a color like this:
LayerTable layerTable = (LayerTable)tr.GetObject(db.LayerTableId, OpenMode.ForWrite);
LayerTableRecord record = new LayerTableRecord();
record.Name = "my layer"
record.Color = Autodesk.AutoCAD.Colors.Color.FromColorIndex(ColorMethod.ByAci, 0); //I want it black
Then, If I create an entity i dont see a method to create a color and set the "IsByLayer" property to TRUE.
Basically I want the color of the entity set to IsByLayer so, please correct me if I am wrong, it will have the opposite color of the layer backgroun (white).
What would be the best approach?
Thank you
Solved! Go to Solution.
Solved by jabowabo. Go to Solution.