Search Results for

    Show / Hide Table of Contents

    Method CreateSmartTextParameter

    CreateSmartTextParameter(DocumentId, SmartText)

    Creates a smart text parameter creation operation in a document.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 10, 0, 0)]
    ElementId CreateSmartTextParameter(DocumentId inDocumentId, SmartText inSmartText)
    Parameters
    Type Name Description
    DocumentId inDocumentId

    Identifier of the document to modify.

    SmartText inSmartText

    Smart text value.

    Returns
    Type Description
    ElementId

    Identifier of the created operation child parameter entity.

    Remarks

    StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.

    This method is available since v7.10.

    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);
    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.