コード例 #1
0
ファイル: MISPreGoldenTicket.cs プロジェクト: cip4/JDFLibNet
        ///
        ///	 <summary> *  </summary>
        ///
        private void initStrippingParams()
        {
            JDFStrippingParams sp = (JDFStrippingParams)theNode.getCreateResource(ElementName.STRIPPINGPARAMS, EnumUsage.Input, 0);

            sp.setDescriptiveName("Impositioning for job " + theNode.getJobID(true));
            sp.setWorkStyle(org.cip4.jdflib.auto.JDFAutoStrippingParams.EnumWorkStyle.getEnum(workStyle.getValue()));
            // VJDFAttributeMap reduceMap=
            getReducedMap(new VString("Separation PartVersion", null));
            JDFBinderySignature bs0 = (JDFBinderySignature)theNode.getResource(ElementName.BINDERYSIGNATURE, EnumUsage.Input, 0);
            JDFBinderySignature bs1 = (JDFBinderySignature)theNode.getResource(ElementName.BINDERYSIGNATURE, EnumUsage.Input, 1);

            if (bs1 == null)
            {
                bs1 = bs0;
            }

            if (vParts != null)
            {
                VJDFAttributeMap reducedMap = getReducedMap(new VString("Side Separation PartVersion", " "));
                if (reducedMap != null)
                {
                    int size = reducedMap.Count;
                    for (int i = 0; i < size; i++)
                    {
                        JDFAttributeMap     part   = reducedMap[i];
                        JDFResource         partSP = sp.getCreatePartition(part, partIDKeys);
                        JDFBinderySignature bs     = partSP.getSheetName().ToLower().Contains("cover") ? bs0 : bs1;
                        partSP.refElement(bs);
                        JDFResourceLink rl = theNode.getLink(bs, null);
                        if (rl != null)
                        {
                            rl.deleteNode();
                        }
                    }
                }
            }
            else
            {
                sp.refElement(bs0);
            }

            sp.appendDevice().setDeviceID("Press_ID");
            sp.appendPosition().setRelativeBox(new JDFRectangle(0, 0, 0.5, 1));
            sp.appendPosition().setRelativeBox(new JDFRectangle(0.5, 1, 1, 1));

            sp.appendStripCellParams().setTrimSize(new JDFXYPair(8.5 * 72, 11 * 72));

            sp.refElement(initPaperMedia());
        }