Ejemplo n.º 1
0
        protected void ReadLaneData(LC4Formatter fmtr, Job job)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Remarks);
            fmtr.Read(out Size);
            fmtr.Read(out Copies);
            fmtr.Read(out LaneType);
            fmtr.Read(out SizeType);
            m_lagen.Read(fmtr, job);
            fmtr.Read(out m_zusatzSchnitte);
            LanesList lanesList;

            fmtr.Read(out lanesList, job);
            Clear();
            foreach (Lane lane in lanesList)
            {
                Add(lane);
            }
            if (version >= 2)
            {
                fmtr.Read(out IsCopy);
            }
        }
Ejemplo n.º 2
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Unit);
        }
Ejemplo n.º 3
0
        internal void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out m_scaled);
            fmtr.Read(out m_isNaN);
        }
Ejemplo n.º 4
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Value);
            fmtr.Read(out IsValueChanged);
        }
Ejemplo n.º 5
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out CutInfoDescription);
            CutInfoDescription.Parent = this;
            CutList = null;
        }
Ejemplo n.º 6
0
        protected void Read_DistancedGroove(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_Distance);
            serHelper.Read(out this.m_Count);
            serHelper.Read(out this.m_DistanceReference);
            serHelper.Read(out this.m_AdditionalCutReference);
        }
Ejemplo n.º 7
0
        protected void Read_FilledGroove(LC4Formatter serHelper)
        {
            ushort usht;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out usht);
            serHelper.Read(out this.m_SecondaryDistance);
            serHelper.Read(out this.m_Distance);
            serHelper.Read(out this.m_Count);
            serHelper.Read(out this.m_CalculationType);
        }
Ejemplo n.º 8
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            BaseRead(fmtr);
        }
Ejemplo n.º 9
0
        public virtual void Read(LC4Formatter fmtr)
        {
            Parent = null;
            ushort version;

            fmtr.Read(out version);
        }
Ejemplo n.º 10
0
        protected void Read_AngularCutDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
        }
Ejemplo n.º 11
0
        protected void Read_SingleGroove(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out version);
        }
Ejemplo n.º 12
0
        protected void Read_GrooveDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_EdgeReference);
            serHelper.Read(out this.m_CutReference);
            serHelper.Read(out this.m_PrimaryDistance);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_Depth);
            serHelper.Read(out this.m_StepWidth);
            serHelper.Read(out this.m_InsertMode);
            serHelper.Read(out this.m_EnteringPosition);
            serHelper.Read(out this.m_LeavingPosition);
        }
Ejemplo n.º 13
0
        public void Read(LC4Formatter fmtr)
        {
            ushort prefix;

            fmtr.Read(out prefix);
            fmtr.Read(out Code);
            fmtr.Read(out Identifier);
            fmtr.Read(out Material);
            fmtr.Read(out Thickness);
            fmtr.Read(out Allowance);
            fmtr.Read(out FunctionCode);
            fmtr.Read(out Maserung);
            fmtr.Read(out KanteVorSchneidenAufgebracht);
        }
Ejemplo n.º 14
0
        protected void Read_SinglePartArrayDescription(LC4Formatter serHelper)
        {
            base.Read_CutInfoDescription(serHelper);
            ushort version;

            serHelper.Read(out version);
            serHelper.Read(out this.m_Length);
            serHelper.Read(out this.m_LengthCount);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_WidthCount);
            serHelper.Read(out this.m_TrimCutRip);
            serHelper.Read(out this.m_TrimCutCross);
            serHelper.Read(out this.m_Workmode);
            serHelper.Read(out this.m_CalculateBoardDim);
        }
Ejemplo n.º 15
0
        protected void Read_CutOutDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_X);
            serHelper.Read(out this.m_Y);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_Length);
            serHelper.Read(out this.m_VertexReference);
            serHelper.Read(out this.m_CutOutReference);
            serHelper.Read(out this.m_VertexDisctance);
            serHelper.Read(out this.m_MeasurementReference);
        }
Ejemplo n.º 16
0
 public static Job LoadLC4(string fileName)
 {
     using (FileStream stm = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
     {
         LC4Formatter fmtr = new LC4Formatter(stm, Encoding.Default);
         Job          doc;
         fmtr.Read(out doc);
         return(doc);
     }
 }
Ejemplo n.º 17
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Remarks);
            fmtr.Read(out m_details);
            fmtr.Read(out m_sheets);
            fmtr.Read(out m_remains);
            fmtr.Read(out m_plans, this);
            if (version >= 2)
            {
                fmtr.Read(out TitelTeileListe);
                fmtr.Read(out TitelPlattenListe);
            }
            if (version >= 3)
            {
                fmtr.Read(out m_kantes);
            }
        }
Ejemplo n.º 18
0
        public void Read(LC4Formatter fmtr, Job job)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Amount);
            fmtr.Read(out Postforming);
            fmtr.Read(out Quality);
            if (version > 1)
            {
                fmtr.Read(out IsFinishPart);
            }
            bool haveRefs;

            fmtr.Read(out haveRefs);
            if (haveRefs)
            {
                fmtr.Read(out m_ref_list);
                fmtr.Read(out m_ref_idx);
                switch (m_ref_list)
                {
                case e_LagenRefList.DetailsList:
                    BaseDetail = job.Details[m_ref_idx];
                    break;

                case e_LagenRefList.SheetsList:
                    BaseDetail = job.Sheets[m_ref_idx];
                    break;

                case e_LagenRefList.RemainsList:
                    BaseDetail = job.Remains[m_ref_idx];
                    break;

                default:
                    throw new LC4FormatException("Неизвестный тип списка " + m_ref_list);
                }
                return;
            }
            else
            {
                BaseDetail = null;
            }
        }
Ejemplo n.º 19
0
        public new void Read(LC4Formatter fmtr, Job job)
        {
            ushort version;

            fmtr.Read(out version);
            ReadLaneData(fmtr, job);
            fmtr.Read(out Length);
            fmtr.Read(out TotalAmount);
            fmtr.Read(out StackAmount);
            fmtr.Read(out MaterialGroup);
            fmtr.Read(out Measure);
            fmtr.Read(out NurVonVorneAbarbeiten);
            fmtr.Read(out m_variables);
            fmtr.Read(out ProdOriginalTotal);
            fmtr.Read(out Optimized);
            fmtr.Read(out Information.ScrapsSquare);
            fmtr.Read(out Information.TotalSquare);
            fmtr.Read(out Information.RemainsCount);
            fmtr.Read(out Information.RemainsSquare);
            fmtr.Read(out Information.DustSquare);
            fmtr.Read(out Information.DetailsCount);
            fmtr.Read(out Information.DetailsSquare);
            fmtr.Read(out Information.ScrapPercent);
        }
Ejemplo n.º 20
0
        protected void Read_CutInfoDescription(LC4Formatter serHelper)
        {
            ushort version;

            serHelper.Read(out version);
        }
Ejemplo n.º 21
0
        internal void BaseRead(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Remarks);
            fmtr.Read(out Material);
            fmtr.Read(out Length);
            fmtr.Read(out Width);
            fmtr.Read(out Thickness);
            fmtr.Read(out Amount);
            fmtr.Read(out AmountInWork);
            fmtr.Read(out TextureDirection);
            fmtr.Read(out IsKeepSafe);
            fmtr.Read(out Variables);
            fmtr.Read(out InVerwendung);
        }