File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public DxfClassCollection Read()
108108 this . notify ( $ "Invalid DxfClass id value: { dxfClass . ItemClassId } for { dxfClass . CppClassName } ", NotificationType . Error ) ;
109109 }
110110
111- if ( this . _fileHeader . AcadVersion >= ACadVersion . AC1018 )
111+ if ( this . R2004Plus )
112112 {
113113 //BL : Number of objects created of this type in the current DB(DXF 91).
114114 dxfClass . InstanceCount = this . _sreader . ReadBitLong ( ) ;
Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ public void Write()
8484 //BL : Number of objects created of this type in the current DB(DXF 91).
8585 this . _writer . WriteBitLong ( c . InstanceCount ) ;
8686 //BS : Dwg Version
87- this . _writer . WriteBitShort ( ( short ) this . _document . Header . Version ) ;
87+ this . _writer . WriteBitLong ( ( short ) this . _document . Header . Version ) ;
8888 //BS : Maintenance release version.
89- this . _writer . WriteBitShort ( this . _document . Header . MaintenanceVersion ) ;
89+ this . _writer . WriteBitLong ( this . _document . Header . MaintenanceVersion ) ;
9090 //BL : Unknown(normally 0L)
9191 this . _writer . WriteBitLong ( 0 ) ;
9292 //BL : Unknown(normally 0L)
You can’t perform that action at this time.
0 commit comments