|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用.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'
我也不清楚为什么...求求大家,可以帮我看看吗>< |
|