Rooooobeeeert
Automotive
Hi.
I need some help with Knowledge Advisor module.
I am trying to make a rule for odd-number and even-number.
Here is my way of thinking:
If X/Y = even-number - I dont know how to creat this part, the result should be Integer but I can make a "CHECK" for that
{
`Construction Elements\Offset_X\Offset` =0
}
else
{
`Construction Elements\Offset_X\Offset`=Y/2
}
I saw some function in c++, but it doesnt work for Catia, can You help me ?
"if ( integer % 2== 0 )
// if the integer when divided by 2 has no remainder then it's even.
cout << integer << " is even "
<<endl;
else
// the integer is odd"
I need some help with Knowledge Advisor module.
I am trying to make a rule for odd-number and even-number.
Here is my way of thinking:
If X/Y = even-number - I dont know how to creat this part, the result should be Integer but I can make a "CHECK" for that
{
`Construction Elements\Offset_X\Offset` =0
}
else
{
`Construction Elements\Offset_X\Offset`=Y/2
}
I saw some function in c++, but it doesnt work for Catia, can You help me ?
"if ( integer % 2== 0 )
// if the integer when divided by 2 has no remainder then it's even.
cout << integer << " is even "
<<endl;
else
// the integer is odd"