横断抽出ラインを使用する場合、横断抽出ラインの表示方法をコントロールする作業に必要な 3 つのスタイルがあります。
ObjectId groupPlotStyleId = _civildoc.Styles.GroupPlotStyles.Add("New GroupPlot Style");
GroupPlotStyle groupPlotStyle = ts.GetObject(groupPlotStyleId, OpenMode.ForWrite) as GroupPlotStyle;
groupPlotStyle.GetDisplayPlan(GroupPlotDisplayStyleType.Border).Color = Color.FromRgb(23, 54, 232);
ObjectId sampleLineStyleId = _civildoc.Styles.SampleLineStyles.Add("New SampleLine Style");
SampleLineStyle sampleLineStyle = ts.GetObject(sampleLineStyleId, OpenMode.ForWrite) as SampleLineStyle;
// Display lines in violet
sampleLineStyle.GetDisplayStylePlan(SampleLineDisplayStyleType.Lines).Color = Color.FromColorIndex(ColorMethod.ByAci, 200);
sampleLineStyle.GetDisplayStyleModel(SampleLineDisplayStyleType.Lines).Color = Color.FromColorIndex(ColorMethod.ByAci, 200);
このスタイルは、横断ビュー グラフでのサーフェス横断の表示方法をコントロールします。 すべての SectionStyle オブジェクトのコレクションは、CivilDocumet.Styles.SectionStyles コレクションに保持されています。SectionStyle には、平面図の設定のみが含まれており、GetDisplayStyleSection() メソッドでアクセスします。
ObjectId sectionStyleId = _civildoc.Styles.SectionStyles.Add("New Section Style");
SectionStyle sectionStyle = ts.GetObject(sectionStyleId, OpenMode.ForWrite) as SectionStyle;
sectionStyle.GetDisplayStyleSection(SectionDisplayStyleSectionType.Segments).Color = Color.FromRgb(180,0,255);