Class Styles
Contains static methods used to execute WisDOT commands related to Civil 3D styles.
Namespace: WisDOT
Assembly: WisDOT.Extensions.dll
Methods
ExportCodeSetStyleInfo()
Exports a list of items within a selected code set style
Declaration
public static List<string[]> ExportCodeSetStyleInfo()
Returns
| Type | Description |
|---|---|
| List<string[]> | List of string arrays |
ExportCodeSetStyleInfos()
Exports multiple code set styles infos
Declaration
public static Dictionary<string, List<string[]>> ExportCodeSetStyleInfos()
Returns
| Type | Description |
|---|---|
| Dictionary<string, List<string[]>> | Dictionary of Lists of string arrays |
GetAvailableCodeSetComponents()
Get all of the available sub-styles for populating a code set style
Declaration
public static Dictionary<string, List<string[]>> GetAvailableCodeSetComponents()
Returns
| Type | Description |
|---|---|
| Dictionary<string, List<string[]>> |
ImportAllCodeSetStylesFromFile(string)
Imports all code set styles from another drawing.
Declaration
public static void ImportAllCodeSetStylesFromFile(string defaultFile)
Parameters
| Type | Name | Description |
|---|---|---|
| string | defaultFile | Source drawing containing the code set styles. |
ImportCodeSetStyle(CodeSetStyleInfo, bool)
Create a new code set style.
Declaration
public static void ImportCodeSetStyle(CodeSetStyleInfo codeSet, bool audit = true)
Parameters
| Type | Name | Description |
|---|---|---|
| CodeSetStyleInfo | codeSet | Object containing the necessary information to build a code set style. |
| bool | audit | Run an audit on the drawing after import |
ImportPointStylesFromFile(string)
Imports all cogo point styles from another drawing.
Declaration
public static void ImportPointStylesFromFile(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | Source drawing containing the cogo point styles. |
InsertPartsLists(string, string, string)
Assigns the specified pay item and catagory files to the current drawing, then inserts the source drawing containing the desired parts lists.
Declaration
public static void InsertPartsLists(string sourceFileName, string payItemFile, string payItemCategoryFile)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFileName | Source file containint the parts lists. |
| string | payItemFile | Path to the pay item file. |
| string | payItemCategoryFile | Path to the pay item catagory file. |
Remarks
Uses the -INSERT command to insert the file containing the parts lists. Therefore, the source file should only contain the parts lists and supporting components.
https://c3dkb.dot.wi.gov/Content/c3d/wisdot-cstm/c3d-tab/dsn/dsn-pip-ntwrk-add-wisdot-prts-lst.htm