개정판 c62b8070
Arc: Write Start & End Points
Change-Id: Ie2a4c92f74a6812264527c4c7142f728a6568242
DTI_PID/OdReadExMgd/OdReadExMgd.cs | ||
---|---|---|
969 | 969 |
writeLine(indent++, pArc.GetRXClass().Name, pArc.Handle); |
970 | 970 |
dumpCurveData(pArc, indent, ArcNode); |
971 | 971 |
|
972 |
XmlNode StartPointNode = Program.xml.CreateElement("Vertex"); |
|
973 |
{ |
|
974 |
XAttr = Program.xml.CreateAttribute("X"); |
|
975 |
XAttr.Value = pArc.StartPoint.X.ToString(); |
|
976 |
StartPointNode.Attributes.SetNamedItem(XAttr); |
|
977 |
|
|
978 |
YAttr = Program.xml.CreateAttribute("Y"); |
|
979 |
YAttr.Value = pArc.StartPoint.Y.ToString(); |
|
980 |
StartPointNode.Attributes.SetNamedItem(YAttr); |
|
981 |
|
|
982 |
ZAttr = Program.xml.CreateAttribute("Z"); |
|
983 |
ZAttr.Value = pArc.StartPoint.Z.ToString(); |
|
984 |
StartPointNode.Attributes.SetNamedItem(ZAttr); |
|
985 |
} |
|
986 |
ArcNode.AppendChild(StartPointNode); |
|
987 |
|
|
988 |
XmlNode EndPointNode = Program.xml.CreateElement("Vertex"); |
|
989 |
{ |
|
990 |
XAttr = Program.xml.CreateAttribute("X"); |
|
991 |
XAttr.Value = pArc.EndPoint.X.ToString(); |
|
992 |
EndPointNode.Attributes.SetNamedItem(XAttr); |
|
993 |
|
|
994 |
YAttr = Program.xml.CreateAttribute("Y"); |
|
995 |
YAttr.Value = pArc.EndPoint.Y.ToString(); |
|
996 |
EndPointNode.Attributes.SetNamedItem(YAttr); |
|
997 |
|
|
998 |
ZAttr = Program.xml.CreateAttribute("Z"); |
|
999 |
ZAttr.Value = pArc.EndPoint.Z.ToString(); |
|
1000 |
EndPointNode.Attributes.SetNamedItem(ZAttr); |
|
1001 |
} |
|
1002 |
ArcNode.AppendChild(EndPointNode); |
|
1003 |
|
|
972 | 1004 |
node.AppendChild(ArcNode); |
973 | 1005 |
|
974 | 1006 |
return ArcNode; |
DTI_PID/OdReadExMgd/OdReadExMgd.csproj | ||
---|---|---|
18 | 18 |
</NuGetPackageImportStamp> |
19 | 19 |
</PropertyGroup> |
20 | 20 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
21 |
<Optimize>true</Optimize>
|
|
21 |
<Optimize>false</Optimize>
|
|
22 | 22 |
<DefineConstants>ODA_LICENSING_ENABLED;_CRTDBG_MAP_ALLOC;UNLOCK_2019;NET47;TRACE;</DefineConstants> |
23 | 23 |
<OutputPath>bin\x86\Release\</OutputPath> |
24 | 24 |
<ErrorReport>prompt</ErrorReport> |
내보내기 Unified diff