iCAx开思工具箱

标题: 移動特徵的問題 [打印本页]

作者: pikachuo    时间: 2008-4-10 00:50
标题: 移動特徵的問題
使用.NET的NXOPEN API时
我在使用MoveFeature(Tag[](), Int32, Double[,,,,,](,,,,,))
遇到一些错误,希望有人能帮帮忙…
string message = "Select";
string title = "Selection";
Selection.SelectionScope scope = Selection.SelectionScope.WorkPart;
bool keepHighlighted = false;
NXOpen.NXObject[] SelectObject;
Selection.Response response;
Selection.SelectionType[] selectionType = new Selection.SelectionType[1] { Selection.SelectionType.All };
UGUI.SelectionManager.SelectObjects(message, title, scope, keepHighlighted, selectionType, out SelectObject);

Tag[] cmtag = new Tag[1] { SelectObject[0].Tag };
double[,] real_data = new double[2, 12] { { 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 }, { 50, 80, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 } };
int mode = 1;
NXOpen.UF.UFModl movefeature;
movefeature.MoveFeature(cmtag, mode, real_data);
       
错误:使用未指定的局部变量 'movefeature'
我也不清楚为什么...求求大家,可以帮我看看吗><
作者: pikachuo    时间: 2008-4-11 00:09
一些小问题已经克服了,但是出现这个错误
NX error status: 672206
有人知道吗?
都没人回觉得有点伤心><




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3