private void WriteStream(Stream stream, bool asText) { var writer = new DxfWriter(stream, asText, Header.Version); writer.Open(); WriteSectionsAndClose(writer, Sections); }
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); }
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; }
private void WriteStream(Stream stream, bool asText) { var writer = new DxfWriter(stream, asText); writer.Open(); var nextHandle = SetHandles(); Header.NextAvailableHandle = nextHandle; // write sections var outputHandles = Header.Version >= DxfAcadVersion.R13 || Header.HandlesEnabled; // handles are always enabled on R13+ foreach (var section in Sections) { foreach (var pair in section.GetValuePairs(Header.Version, outputHandles)) writer.WriteCodeValuePair(pair); } writer.Close(); }