cancel
Showing results for 
Search instead for 
Did you mean: 

CSE - parse error NX7.5 - works in NX10

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi everybody,

 

the following syntax is working as a subprog in NX10:

 

DEF INT TOOLRAR
##LANGUAGE AC
setVariable("$CX_RAD", getArrayElement("$TC_DP6", getVariable("$P_TOOLP"), 1));
##LANGUAGE NATIVE
TOOLRAD=$CX_RAD

 

NX7.5 throw out a parse error on "$CX_RAD.

 

Is there a workaround?

 

Best wishes from Hamburg

Vik

1 REPLY

Re: CSE - parse error NX7.5 - works in NX10

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

I solved this problem with following attempt. Now the tool radius is taken correctly.

 

1. the "D" metacode was upgraded with:

 

<Command>
 <Name>SetVariable</Name>
 <Param>"TOOLRAD"</Param>
 <Param>getArrayElement("$TC_DP6", getVariable("$P_TOOLP"), INTEGER(Value))</Param>
</Command>

 

2. "TOOLRAD" was defined as a single variable (double) in MCF

 

3. the subprog was cleaned of "DEF REAL TOOLRAD"

Learn online





Solution Information