ACadSharp
ACadSharp copied to clipboard
Create new DWG, Color control and Line Type Control and Model
When I create new DWG
Color control = Color 0 Should it be = Bylayer as default ?
Line Type Control = notthing is default Should it be = Bylayer as default ?
Model and Layout1 Layout1 is Default activate Should it be = Model as default ?
Regards Sigster
Hi @sigster
What do you mean by control? Are you referring to the header variables?
Edit: I'm not sure how those values are actually changed because I believe they are proprietary AutoCAD variables. I don't think that all DWG viewers/editors respect those values.
These values are set by default but they are not constraint to anything in particular.
If you want a sort of defaults for your document you can change the values in the header of the document, here is an example with the LineType
by default:
doc.Header.CurrentLineTypeName = LineType.ByBlockName;
Not sure which variable holds the current Layout, I would have to check that.
Thanks
Do you have sample how to change Header color to Bylayer
It seems that, there is a limitation with colors, the colors in the header are written in a different way than the other entities and by now the writer cannot write the colors in the header property, so by now I think that this value cannot change.
I'll open a branch assigned to this issue to take a look at this bug.
Thanks
and thanks for the
doc.Header.CurrentLineTypeName = LineType.ByBlockName;
Regards Sigster