Show / Hide Table of Contents

Class Assemblies

Contains static methods to execute WisDOT Assemblies commands.

Namespace: WisDOT
Assembly: WisDOT.Extensions.dll

Methods

AdjustAssemblyLabelSizes(string, double)

Adjust the text height for link, marker, and shape labels that utilize the TextHeight expression

Declaration
public static void AdjustAssemblyLabelSizes(string expressionName, double amount)
Parameters
Type Name Description
string expressionName

Name of the expression. Link, marker, and shape expression must all have the same name.

double amount

Amount to adjust positive or negative

CopyAssembly()

Sets the source database, assembly name, and assembly location fields for the Assemblies class to be be used with the PasteAssembly methods.

Declaration
public static void CopyAssembly()
Remarks

https://c3dkb.dot.wi.gov/Content/c3d/rdwy-dsn/sub-asmbly/sa-asmbly-copy.htm

FixSubassemblyPaths(string, string, string)

Remaps subassembly source paths to the current version

Declaration
public static void FixSubassemblyPaths(string localDriveRoot, string stndRoot, string stndVersionRoot)
Parameters
Type Name Description
string localDriveRoot

C: or other drive root

string stndRoot

Root of standards path. Typically C:\WisDOT\Stnd

string stndVersionRoot

Root of the version-specific standards path. Typicall C:\WisDOT\Stnd\C3D{version_year)

GetAssemblyLabelSizes(string, string, ref double, ref double, ref double, ref bool)

Gets the text height for link, marker, and shape labels that utilize the specified expression

Declaration
public static void GetAssemblyLabelSizes(string filePath, string expressionName, ref double markerSize, ref double linkSize, ref double shapeSize, ref bool hasAssemblies)
Parameters
Type Name Description
string filePath

Document to get the label sizes from

string expressionName

Name of the expression. Link, marker, and shape expression must all have the same name.

double markerSize

Marker label text size set in the expression formula

double linkSize

Link label text size set in the expression formula

double shapeSize

Shape label text size set in the expression formula

bool hasAssemblies

Report if the doc contains any assemblies.

ImportAssembly()

Imports an assembly from another drawing. Includes prompts for drawing path and assembly name.

Declaration
public static void ImportAssembly()

LabelAssemblies()

Creates pre-filled and pre-formatted Mtext labels containing the name of an assembly.

Declaration
public static void LabelAssemblies()
Remarks

https://c3dkb.dot.wi.gov/Content/c3d/wisdot-cstm/c3d-tab/dsn/dsn-asmbly-labl-asmbly.htm

PasteAssembly()

Inserts the assembly identified by the CopyAssembly method at the cursor position.

Declaration
public static void PasteAssembly()
Remarks

https://c3dkb.dot.wi.gov/Content/c3d/rdwy-dsn/sub-asmbly/sa-asmbly-copy.htm

PasteAssembly(Point3d)

Inserts the assembly identified by the CopyAssembly method at the coordinate of the original assembly.

Declaration
public static void PasteAssembly(Point3d origPt)
Parameters
Type Name Description
Point3d origPt
Remarks

https://c3dkb.dot.wi.gov/Content/c3d/rdwy-dsn/sub-asmbly/sa-asmbly-copy.htm

ReportSubassemblyCodes()

Report string parameters for all subassemblies in a drawing.

Declaration
public static List<string[]> ReportSubassemblyCodes()
Returns
Type Description
List<string[]>

List of string arrays

ResetSubassemblyCodes()

Resets selected subassembly point, link, and shape codes to what is specified in the source palette pkt file. Code parameters must follow "PTCodeP", "LKCodeL", and "SPCodeS" naming convention.

Declaration
public static void ResetSubassemblyCodes()

SetAssemblyLabelSizes(string, double, double, double)

Sets the text height for link, marker, and shape labels that utilize the 'expressionName' expression

Declaration
public static void SetAssemblyLabelSizes(string expressionName, double markerSize, double linkSize, double shapeSize)
Parameters
Type Name Description
string expressionName
double markerSize
double linkSize
double shapeSize
In this article
Back to top Generated by DocFX