横断抽出ライン スタイルを作成する

横断抽出ラインを使用する場合、横断抽出ラインの表示方法をコントロールする作業に必要な 3 つのスタイルがあります。

GroupPlotStyle
このスタイルは、横断ビュー グラフのグループの描画方法をコントロールします。このスタイルによって、行と列の方向、および複数のグラフの間隔を変更します。すべての GroupPlotStyle オブジェクトのコレクションは、CivilDocument.Styles.GroupPlotStyles コレクションに含まれています。GroupPlotStyle には平面図の設定のみが含まれており、設定には GetDisplayPlan() メソッドでアクセスします。
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);
SampleLineStyle
このスタイルは、横断抽出ラインのサーフェス上での描画方法をコントロールします。すべての SampleLineStyle オブジェクトのコレクションは、CivilDocument.Styles.SampleLineStyles コレクションに保持されています。 SampleLineStyle には、モデル ビューの設定(GetDisplayStyleModel() メソッド使用)と平面図の設定(GetDisplayStylePlan() メソッド使用)の両方が含まれています。
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

このスタイルは、横断ビュー グラフでのサーフェス横断の表示方法をコントロールします。 すべての 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);