public override string GCode_GetTypeString(CodeGenerateSystem.Base.LinkPinControl element, CodeGenerateSystem.Base.GenerateCodeContext_Method context) { if (element == null || element == ResultLink) { if (Value1.HasLink) { return(Value1.GetLinkedObject(0, true).GCode_GetTypeString(Value1.GetLinkedPinControl(0, true), context)); } } return(base.GCode_GetTypeString(element, context)); }
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); } }