public int apply_cb()
{
int errorCode = 0;
try
{
//---- Enter your callback code here -----
NXOpen.TaggedObject[] curves = edge_select0.GetSelectedObjects();
double distance = double0.Value;
bool i = toggle0.Value;
CreateOffset(curves,distance,i);
CreateOffset(curves,-distance, i);
}
catch (Exception ex)
{
//---- Enter your exception handling code here -----
errorCode = 1;
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
}
return errorCode;
}
private void CreateOffset(NXOpen.TaggedObject[] curves1, double distance, bool i)
{
//NXOpen.Session theSession = NXOpen.Session.GetSession();
NXOpen.Part workPart = theSession.Parts.Work;
NXOpen.Part displayPart = theSession.Parts.Displ
创建双边偏置曲线(通过TOGGLE控件来控制是否保留原来的曲线)
最新推荐文章于 2024-06-02 16:33:28 发布
本文介绍如何利用TOGGLE控件在三维建模中创建双边偏置曲线,并详细说明如何控制是否保留原有的基础曲线。通过对TOGGLE选项的设置,用户可以在偏置操作后灵活地管理原始几何形状。

最低0.47元/天 解锁文章
608

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



