Exemple #1
0
        public override void GCode_GenerateCode(ref string strDefinitionSegment, ref string strSegment, int nLayer, CodeGenerateSystem.Base.LinkPinControl element, CodeGenerateSystem.Base.GenerateCodeContext_Method context)
        {
            if (Value1.HasLink)
            {
                Value1.GetLinkedObject(0, true).GCode_GenerateCode(ref strDefinitionSegment, ref strSegment, nLayer, element, context);
                m_strValueName1 = Value1.GetLinkedObject(0, true).GCode_GetValueName(Value1.GetLinkedPinControl(0, true), context);
            }

            if (Value2.HasLink)
            {
                Value2.GetLinkedObject(0, true).GCode_GenerateCode(ref strDefinitionSegment, ref strSegment, nLayer, element, context);
                m_strValueName2 = Value2.GetLinkedObject(0, true).GCode_GetValueName(Value2.GetLinkedPinControl(0, true), context);
            }
        }