すべてのアセンブリ スタイル オブジェクトのコレクションは、AeccRoadwayDocument.AssemblyStyles に存在します。 アセンブリ スタイル オブジェクトには、アセンブリ アタッチメント ポイントのマーカー タイプ、標準の各 AeccMarkerType プロパティを調整するためのプロパティが含まれています。 新しいスタイルの作成と既存のスタイルの編集はできますが、AutoCAD Civil 3D API を使用してスタイルを既存のアセンブリに割り当てることはできません。
' Create a new assembly style and change it so that the ' place where the assembly attaches to the main baseline ' is marked with a red X. Dim oAssemblyStyle As AeccAssemblyStyle Set oAssemblyStyle = oRoadwayDocument.AssemblyStyles.Add("Style1") With oAssemblyStyle.MarkerStyleAtMainBaseline .CustomMarkerStyle = aeccCustomMarkerX .MarkerDisplayStylePlan.Color = 10 ' red .MarkerDisplayStylePlan.Visible = True End With