public void SetExtDic(DicED dicFront, Document doc) { if (dicFront == null) { // Default return; } // Собственные значения расчета SetDataValues(dicFront.GetRec("FrontModelRec")?.Values, doc); // настроки Options = new FrontOptions(); Options.SetExtDic(dicFront.GetInner("FrontOptions"), doc); int groupCount = 0; DicED dicGroup; do { dicGroup = dicFront.GetInner("Group" + groupCount++); if (dicGroup != null) { AddGroup(dicGroup); } } while (dicGroup != null); }
/// <summary> /// Инициализация расчета /// </summary> public void Initialize(InsModel insModel) { this.Model = insModel; // Настройки if (Options == null) { Options = FrontOptions.Default(); } }
private Polyline CreateLine(Point2d ptStart, Point2d ptEnd, FrontOptions opt) { var line = new Polyline(2); line.AddVertexAt(0, ptStart, 0, 0, 0); line.AddVertexAt(1, ptEnd, 0, 0, 0); line.Color = Color.FromColor(opt.GetFrontColor(InsValue)); line.ConstantWidth = opt.LineFrontWidth; //line.LayerId = opt.FrontLineLayerId; return(line); }
//public string FrontLineLayer { get; set; } = "sapr_ins_front"; public static FrontOptions Default() { var opt = new FrontOptions(); //{ // StepCalcPointInFront = 0.3, // LineFrontWidth = 0.6, // FrontLineLayer = "sapr_ins_front" //}; return(opt); }
public FrontValue(Point2d ptStart, Point2d ptEnd, InsRequirementEnum insValue, FrontOptions opt) { InsValue = insValue; Line = CreateLine(ptStart, ptEnd, opt); }