Show / Hide Table of Contents

    Class Drawing

    Metadata for a drawing and access to a PDF rendering of the drawing

    Inheritance
    System.Object
    Drawing
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: DesignData.SDS2.Detail
    Assembly: DesignData.SDS2.Detail.dll
    Syntax
    public class Drawing

    Properties

    BillOfMaterial

    The bill of material associated with a drawing.

    Declaration
    public BillOfMaterial BillOfMaterial { get; }
    Property Value
    Type Description
    BillOfMaterial

    DimensioningDefaults

    Declaration
    public AnnotationDimensioningDefaults DimensioningDefaults { get; }
    Property Value
    Type Description
    AnnotationDimensioningDefaults

    DrawingType

    the type of the drawing, detail, sheet, submaterial detail, etc

    Declaration
    public TableWithDrawings DrawingType { get; }
    Property Value
    Type Description
    TableWithDrawings

    EvuDefaults

    Declaration
    public ErectionViewDefaults EvuDefaults { get; }
    Property Value
    Type Description
    ErectionViewDefaults

    Handle

    The database handle for this drawing

    Declaration
    public DrawingHandle Handle { get; }
    Property Value
    Type Description
    DrawingHandle

    Name

    the name of the drawing

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Status

    Accessor object for drawing status information

    Declaration
    public DrawingStatus Status { get; }
    Property Value
    Type Description
    DrawingStatus

    Methods

    CreatePDF()

    Get the PDF as a binary blob. This can be written to a file or stored elsewhere.

    Declaration
    public byte[] CreatePDF()
    Returns
    Type Description
    System.Byte[]

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    Find(TableWithDrawings, String)

    Find a drawing, and anything referencing it, based on a database table and the name of the drawing

    Declaration
    public static DrawingList Find(TableWithDrawings table, string name)
    Parameters
    Type Name Description
    TableWithDrawings table
    System.String name
    Returns
    Type Description
    DrawingList

    Find(PiecemarkType, String)

    Find all drawings referencing the given piecemark. If a piecemark hasn't been detailed yet it will not have a drawing, so this list will be empty.

    Declaration
    public static DrawingList Find(PiecemarkType piecemarkType, string piecemark)
    Parameters
    Type Name Description
    PiecemarkType piecemarkType

    the type of mark, major or minor

    System.String piecemark

    the name of the mark, such as B_1 or p1

    Returns
    Type Description
    DrawingList

    Get(DrawingHandle)

    Get a drawing based on its location in the database

    Declaration
    public static Drawing Get(DrawingHandle drawingHandle)
    Parameters
    Type Name Description
    DrawingHandle drawingHandle
    Returns
    Type Description
    Drawing

    Get(TableWithDrawings, String)

    Get a drawing based on a table and its name

    Declaration
    public static Drawing Get(TableWithDrawings table, string name)
    Parameters
    Type Name Description
    TableWithDrawings table
    System.String name
    Returns
    Type Description
    Drawing

    Get(PiecemarkType, String)

    Get a drawing based on piecemark type and its name

    Declaration
    public static Drawing Get(PiecemarkType piecemarkType, string name)
    Parameters
    Type Name Description
    PiecemarkType piecemarkType
    System.String name
    Returns
    Type Description
    Drawing
    Back to top