Hi Ronak,
apparently, all policies work well with other Detection Servers.
I have implemented the following policies:
3DM File
$header=ascii('3D Geometry File');
$word=getBinaryValueAt($data, 0x00, 16);
assertTrue($header == $word);
ASM.K File
$header=ascii('#UGC:2 ASSEMBLY');
$word=getBinaryValueAt($data, 0x00, 15);
assertTrue($header == $word);
CAD File
$header=ascii('Tebis Database V');
$word=getBinaryValueAt($data, 0x00, 16);
assertTrue($header == $word);
DRW.K File
$header=ascii('#UGC:2 DRAWING');
$word=getBinaryValueAt($data, 0x00, 14);
assertTrue($header == $word);
IGS File
$value1=ascii('S 1');
$value2=ascii('S0000001');
$value=getBinaryValueAt($data, 72, 8);
if ($value == $value1) {
assertTrue ($value == $value1);
} else assertTrue ($value == $value2);
MCX File
$value1=getHexStringValue('88000000');
$value2=getHexStringValue('00050100');
$value3=getBinaryValueAt($data, 0, 4);
$value4=getBinaryValueAt($data, 79, 4);
assertTrue ($value3 == $value1);
assertTrue ($value4 == $value2);
PFM File
$value1=getHexStringValue('02000000');
$value2=getHexStringValue('3412000002');
$value3=getBinaryValueAt($data, 0, 4);
$value4=getBinaryValueAt($data, 60, 5);
assertTrue ($value3 == $value1);
assertTrue ($value4 == $value2);
PRT.K File
$value1=ascii('#UGC:2 PART');
$value=getBinaryValueAt($data, 0, 11);
assertTrue ($value == $value1);
STP File
$header=ascii('ISO-10303-21;');
$word=getBinaryValueAt($data, 0x00, 13);
assertTrue($header == $word);
The same issue even using a single policy with all the above rules together.
Any idea?
Best regards,
Giovanni