自动刻字功能是建模过程中必须用到的,但是网上没有找到完整的刻字功能实现,所以我花了一些时间写了一套简易程序,希望能给初学者带来一点帮助
先介绍一下建模环境下刻字功能的实现,分三步走(本节主要介绍布尔求差实现):
第一步:打印文本
第二步:拉伸
第三步:布尔求差
/// <summary>
/// 布尔求值
/// </summary>
/// <param name="targetTag">目标体tag</param>
/// <param name="collectTag">待求差tag</param>
/// <param name="oprType">操作类型</param>
public static void BooleanBuilderOpr(Tag targetTag, Tag collectTag, Feature.BooleanType oprType)
{
Part workPart = theSession.Parts.Work;
NXOpen.Features.BooleanFeature nullFeatures_BooleanFeature = null;
NXOpen.Features.BooleanBuilder booleanBuilder1;
booleanBuilder1 = workPart.Features.CreateBooleanBuilderUsingCollector(nullFeatures_BooleanFeature);
ScCollector scCollector1;
scCollector1 = booleanBuilder1.To

最低0.47元/天 解锁文章
337

被折叠的 条评论
为什么被折叠?



