public int apply_cb()
{
int errorCode = 0;
try
{
//---- Enter your callback code here -----
TaggedObject[] curves = edge_select0.GetSelectedObjects();
Vector3d vec = vector0.Vector;
double distance = double0.Value;
//Session theSession = Session.GetSession();
Part workPart = theSession.Parts.Work;
NXOpen.Features.OffsetCurveBuilder offsetCurveBuilder1 = workPart.Features.CreateOffsetCurveBuilder(null);
Direction direction1 = workPart.Directions.CreateDirection(new Point3d(0, 0, 0), vec, SmartObject.UpdateOption.WithinModeling);
//设置曲线偏置方向
offsetCurveBuilder1.AxialOffsetDirection = direction1;
//判断选择类型
List<SelectionIntentRule> eList = new List<SelectionIntentRule>();
NXObject seed = null;
fo
创建曲线偏置根据指定矢量
最新推荐文章于 2022-12-21 15:38:38 发布