void spurOK(char *dialog,char *component,ProAppData data)
{
ProMdl part;
ProParameter param1;
ProParameter param2;
ProParameter param3;
ProParameter param4;
ProParameter param5;
ProParameter param6;
ProParamvalue value1;
ProParamvalue value2;
ProParamvalue value3;
ProParamvalue value4;
ProParamvalue value5;
ProParamvalue value6;
ProModelitem feature;
int i;
int z1;
double m1,alpha1,hax1,cx1,b1;
ProMdlRetrieve(L"E:\\temp\\gear_1.prt.1",PRO_PART,&part);
ProMdlDisplay(part);
ProMdlIdGet(part,&i);
ProModelitemInit(part,i,PRO_PART,&feature);
ProParameterInit(&feature,L"Z",¶m1);
ProParameterInit(&feature,L"M",¶m2);
ProParameterInit(&feature,L"ALPHA",¶m3);
ProParameterInit(&feature,L"HAX",¶m4);
ProParameterInit(&feature,L"CX",¶m5);
ProParameterInit(&feature,L"B",¶m6);
ProUIInputpanelIntegerGet("Spur","Z",&z1);
ProUIInputpanelDoubleGet("Spur","M",&m1);
ProUIInputpanelDoubleGet("Spur","ALPHA",&alpha1);
ProUIInputpanelDoubleGet("Spur","HAX",&hax1);
ProUIInputpanelDoubleGet("Spur","CX",&cx1);
ProUIInputpanelDoubleGet("Spur","B",&b1);
value1.type=PRO_PARAM_INTEGER;
value1.value.i_val=z1;
value2.type=PRO_PARAM_DOUBLE;
value2.value.d_val=m1;
value3.type=PRO_PARAM_DOUBLE;
value3.value.d_val=alpha1;
value4.type=PRO_PARAM_DOUBLE;
value4.value.d_val=hax1;
value5.type=PRO_PARAM_DOUBLE;
value5.value.d_val=cx1;
value6.type=PRO_PARAM_DOUBLE;
value6.value.d_val=b1;
ProParameterValueSet(¶m1,&value1);
ProParameterValueSet(¶m2,&value2);
ProParameterValueSet(¶m3,&value3);
ProParameterValueSet(¶m4,&value4);
ProParameterValueSet(¶m5,& value5);
ProParameterValueSet(¶m6,& value6);
ProSolidRegenerate((ProSolid)part,PRO_B_TRUE);
ProUIDialogExit(dialog,1);
}
这是我的SpurOK函数定义,编译后有出现这样错误:
error LNK2001: unresolved external symbol _SpurOK |