!416 将标注文字朝向写入文件

pull/416/MERGE
肖诗雅 5 years ago committed by ChenX
parent cc1bd8c943
commit f4f8af7577

@ -286,16 +286,19 @@ export class AlignedDimension extends Entity
this.m_ArmP2.fromArray(file.Read()); this.m_ArmP2.fromArray(file.Read());
this.m_FootP1.fromArray(file.Read()); this.m_FootP1.fromArray(file.Read());
this.m_FootP2.fromArray(file.Read()); this.m_FootP2.fromArray(file.Read());
if (ver > 1)
this.m_TextRotation = file.Read();
} }
//对象将自身数据写入到文件. //对象将自身数据写入到文件.
WriteFile(file: CADFiler) WriteFile(file: CADFiler)
{ {
super.WriteFile(file); super.WriteFile(file);
file.Write(1); file.Write(2);
file.Write(this.m_ArmP1.toArray()); file.Write(this.m_ArmP1.toArray());
file.Write(this.m_ArmP2.toArray()); file.Write(this.m_ArmP2.toArray());
file.Write(this.m_FootP1.toArray()); file.Write(this.m_FootP1.toArray());
file.Write(this.m_FootP2.toArray()); file.Write(this.m_FootP2.toArray());
file.Write(this.m_TextRotation);
} }
//#endregion //#endregion
} }

Loading…
Cancel
Save