public virtual void testAutoRegister() { Assert.AreEqual(EnumVersion.Version_1_3, n.getVersion(false), "version ok"); JDFLayout lo = (JDFLayout)n.appendMatchingResource(ElementName.LAYOUT, EnumProcessUsage.AnyInput, null); JDFColorControlStrip autoReg = lo.appendMarkObject().appendColorControlStrip(); autoReg.setStripType("AutoRegister"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Black"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Cyan"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Yellow"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Magenta"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Spot1"); autoReg.appendElement("SeparationSpec").setAttribute("Name", "Spot2"); JDFColorControlStrip fms = lo.getMarkObject(0).appendColorControlStrip(); fms.setStripType("FMS"); fms.appendElement("SeparationSpec").setAttribute("Name", "Black"); fms.appendElement("SeparationSpec").setAttribute("Name", "Yellow"); fms.appendElement("SeparationSpec").setAttribute("Name", "Magenta"); fms.appendElement("SeparationSpec").setAttribute("Name", "Cyan"); fms = lo.getMarkObject(0).appendColorControlStrip(); fms.setStripType("FMS"); fms.appendElement("SeparationSpec").setAttribute("Name", "Spot1"); fms.appendElement("SeparationSpec").setAttribute("Name", "Spot2"); doc.write2File(sm_dirTestDataTemp + "autoregister.jdf", 2, false); }