After having run the code successfully, I'm confused as to why LINE 11 and LINE 16 in the snippet above return surfaces and not null. The names (ei ASM_D_FRONT and COMP_D_FRONT) provided in the asmDatums and compDatums arrays seem arbitrary to me, and somehow they manage to correctly reference the datum planes in any part and assembly. Do parts and assemblies have a default underlying naming structure for their initial datums? If this is the case can someone point me to where I can find the standard datum names.
If anyone could please explain how LINES 11 and 16 are able to reference the datums planes it would help tremendously!