private void PrepareForWriting() { var nextHandle = DxfPointer.AssignHandles(this); Header.NextAvailableHandle = nextHandle; SetExtents(); UpdateTimes(); Normalize(); }
private DxfWriter PrepareWriter(Stream stream, bool asText) { UpdateTimes(); Normalize(); var writer = new DxfWriter(stream, asText); writer.Open(); var nextHandle = DxfPointer.AssignHandles(this); Header.NextAvailableHandle = nextHandle; return(writer); }