public int apply_cb()
{
int errorCode = 0;
try
{
//---- Enter your callback code here -----
Session theSession = Session.GetSession();
Part workPart = theSession.Parts.Work;
Part displyPart = theSession.Parts.Display;
NXOpen.UF.UFSession theUfSession = NXOpen.UF.UFSession.GetUFSession();
TaggedObject[] objects = bodySelect0.GetSelectedObjects();
NXOpen.Tag objectTag = objects[0].Tag;
NXOpen.Tag csysTag = NXOpen.Tag.Null;
bool expand = false;
double[] minCorner = new double[3];
double[,] directions = new double[3,3];
double[] distances = new double[3];
theUfSession.Modl.AskBoundingBoxAligned(objectTag,csysTag,expand,minCorner,directions,distances);
//UF方法创建
//NXOpen.UF.FeatureSigns fea
创建包围盒子
最新推荐文章于 2024-07-10 10:42:59 发布