假设我有以下 XML:
<?xml version="1.0" encoding="UTF-8" ?>
<exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://download.autodesk.com/us/navisworks/schemas/nw-exchange-12.0.xsd" units="ft" filename="" filepath="">
<batchtest name="3636" internal_name="3636" units="ft">
<clashtests>
<clashtest name="Ducts VS Ducts" test_type="hard" status="new" tolerance="0.0000000000" merge_composites="0">
<linkage mode="none"/>
<left>
<clashselection selfintersect="0" primtypes="1">
<locator>/</locator>
</clashselection>
</left>
<right>
<clashselection selfintersect="0" primtypes="1">
<locator>/</locator>
</clashselection>
</right>
<rules/>
</clashtest>
<clashtest name="Ducts VS Cable Trays" test_type="hard" status="new" tolerance="0.0000000000" merge_composites="0">
<linkage mode="none"/>
<left>
<clashselection selfintersect="0" primtypes="1">
<locator>/</locator>
</clashselection>
</left>
<right>
<clashselection selfintersect="0" primtypes="1">
<locator>/</locator>
</clashselection>
</right>
<rules/>
</clashtest>
</batchtest>
</exchange>
我想在 Visual Studio 中使用 C# 来做这个图像
如图所示,我想将定位器节点的值更改为取决于碰撞测试节点的值。