Code snippets should be listed in the code snippets board.
This one however applies to finding the scale of a 1 unit DBP primitive cube and whatever 3d package your using.
Granted you need a package to open an x file and convert it if your 3d program doesnt do that but heres the code to find out what the scale is .
If your using Milkshape use the import feature in tools Direct X mesh tools to import it.
rem create a mesh and save it
rem indi October 2003
sync on : sync rate 60
make object cube 1,1
make mesh from object 100,1
save mesh "cubemesh.x",100
backdrop off
print "process complete press any key"
sync : sync
suspend for key
delete object 1
delete mesh 100