Search Results for

    Show / Hide Table of Contents

    Constructor SmartText

    SmartText(SmartTextType, string, ElementId, ItemLabel, string)

    Initializes a new instance of the SmartText class.

    Declaration
    public SmartText(SmartTextType inType, string inValue, ElementId inElementId, ItemLabel inItemLabel, string inFormula)
    Parameters
    Type Name Description
    SmartTextType inType

    Type of smart text.

    string inValue

    Value, or null if unknown.

    ElementId inElementId

    Identifier of providing element, or Empty for none.

    ItemLabel inItemLabel

    Label of providing element item, or Empty for none.

    string inFormula

    Formula, or null for none.

    Examples

    How to create a text parameter made by concatenating the values of two existing text parameters named "t1" and "t2":

    SmartText smartText = new SmartText(SmartTextType.Formula, null, ElementId.Empty, ItemLabel.Empty, "t1 & t2");
    ElementId eltId = TopSolidHost.Parameters.CreateSmartTextParameter(docId, smartText);

    SmartText(SmartTextType, string, ElementId, ItemLabel, string, ScriptType)

    Initializes a new instance of the SmartText class.

    Declaration
    public SmartText(SmartTextType inType, string inValue, ElementId inElementId, ItemLabel inItemLabel, string inFormula, ScriptType inScriptType)
    Parameters
    Type Name Description
    SmartTextType inType

    Type of smart text.

    string inValue

    Value, or null if unknown.

    ElementId inElementId

    Identifier of providing element, or Empty for none.

    ItemLabel inItemLabel

    Label of providing element item, or Empty for none.

    string inFormula

    Formula, or null for none.

    ScriptType inScriptType

    ScripType

    SmartText(string)

    Initializes a new instance of the SmartText class of type Basic.

    Declaration
    public SmartText(string inValue)
    Parameters
    Type Name Description
    string inValue

    Value.

    SmartText(ElementId)

    Initializes a new instance of the SmartText class of type Element.

    Declaration
    public SmartText(ElementId inElementId)
    Parameters
    Type Name Description
    ElementId inElementId

    Identifier of providing element.

    SmartText(ElementId, ItemLabel)

    Initializes a new instance of the SmartText class of type Item.

    Declaration
    public SmartText(ElementId inElementId, ItemLabel inItemLabel)
    Parameters
    Type Name Description
    ElementId inElementId

    Identifier of providing element.

    ItemLabel inItemLabel

    Label of providing element item.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.