<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[用C#写UG二次开发，分享一个自动标注工具：核心技术要点、操作步骤与参数设置指南]]></title><description><![CDATA[<p dir="auto">自学UG二次开发有一段时间了，最近写了一个自动标注工具，分享一下思路：</p>
<p dir="auto">工具功能：选中一个面或边后自动标注尺寸和公差<br />
实现方式：C# + NXOpen API<br />
关键代码：用NXOpen.Annotations.Drafting命名空间下的类创建标注</p>
<p dir="auto">代码大概200行，主要用到Selection、AnnotationManager和DisplayManager三个类。写这个工具的初衷是设计标注太耗时了，重复工作应该交给程序做。有感兴趣的同学可以一起交流二次开发经验。</p>
<hr />
<p dir="auto"><strong>相关推荐：</strong></p>
<ul>
<li><a href="https://www.mj7.cn/t/topic" rel="nofollow ugc">注塑产品报价不会算？完整成本计算模板来了（附公式+案例）</a></li>
<li><a href="https://www.mj7.cn/t/pp" rel="nofollow ugc">PP塑料：性能参数与注塑成型指南</a></li>
<li><a href="https://www.mj7.cn/t/pa" rel="nofollow ugc">PA塑料：性能参数与注塑成型指南</a></li>
</ul>
<hr />
<p dir="auto">新手建议收藏，老手欢迎指点。</p>
]]></description><link>https://forum.mj7.cn/topic/2475/用c-写ug二次开发-分享一个自动标注工具-核心技术要点-操作步骤与参数设置指南</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 14:35:12 GMT</lastBuildDate><atom:link href="https://forum.mj7.cn/topic/2475.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 May 2026 09:24:23 GMT</pubDate><ttl>60</ttl></channel></rss>