Show / Hide Table of Contents

    Class DatabaseExtensionMethods

    Extension methods for DesignData.SDS2.Database. These are all convenience methods and will appear to be on classes in DesignData.SDS2.Database.

    Inheritance
    object
    DatabaseExtensionMethods
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: DesignData.SDS2.Model
    Assembly: DesignData.SDS2.Model.dll
    Syntax
    public static class DatabaseExtensionMethods

    Methods

    Add(Transaction, Bolt)

    Add a bolt to the transaction so that it can be modified. You will need to Lock() again after adding bolts.

    Declaration
    public static void Add(this Transaction transaction, Bolt bolt)
    Parameters
    Type Name Description
    Transaction transaction
    Bolt bolt
    Remarks

    This is the same as transaction.Add(bolt.Handle);

    Add(Transaction, Component)

    Add a component to the transaction before locking so that it can be modified.

    Declaration
    public static void Add(this Transaction transaction, Component component)
    Parameters
    Type Name Description
    Transaction transaction
    Component component
    Remarks

    This is the same as transaction.Add(component.Handle);

    Add(Transaction, Hole)

    Add a hole to the transaction so that it can be modified. You will need to Lock() again after adding holes.

    Declaration
    public static void Add(this Transaction transaction, Hole hole)
    Parameters
    Type Name Description
    Transaction transaction
    Hole hole
    Remarks

    This is the same as transaction.Add(hole.Handle);

    Add(Transaction, Material)

    Add a material to the transaction so that it can be modified. You will need to Lock() again after adding materials.

    Declaration
    public static void Add(this Transaction transaction, Material material)
    Parameters
    Type Name Description
    Transaction transaction
    Material material
    Remarks

    This is the same as transaction.Add(material.Handle);

    Add(Transaction, Member)

    Add a member to the transaction before locking so that it can be modified.

    Declaration
    public static void Add(this Transaction transaction, Member member)
    Parameters
    Type Name Description
    Transaction transaction
    Member member
    Remarks

    This is the same as transaction.Add(member.Handle);

    Add(Transaction, MemberBrief)

    Add a member to the transaction before locking so that it can be modified.

    Declaration
    public static void Add(this Transaction transaction, MemberBrief member)
    Parameters
    Type Name Description
    Transaction transaction
    MemberBrief member
    Remarks

    This is the same as transaction.Add(member.Handle);

    Add(Transaction, UserDefinedConnection)

    Add a user defined connection to the transaction, this will then append that user defined connection to the model on commit.

    Declaration
    public static void Add(this Transaction transaction, UserDefinedConnection userDefinedConnection)
    Parameters
    Type Name Description
    Transaction transaction
    UserDefinedConnection userDefinedConnection

    Add(Transaction, Weld)

    Add a bolt to the transaction so that it can be modified. You will need to Lock() again after adding welds.

    Declaration
    public static void Add(this Transaction transaction, Weld weld)
    Parameters
    Type Name Description
    Transaction transaction
    Weld weld
    Remarks

    This is the same as transaction.Add(weld.Handle);

    Back to top