Search Results for

    Show / Hide Table of Contents

    Method SearchByName

    SearchByName(DocumentId, string)

    Searches for an element with a specified name in a document.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 6, 0, 0)]
    ElementId SearchByName(DocumentId inDocument, string inName)
    Parameters
    Type Name Description
    DocumentId inDocument

    Document to analyze.

    string inName

    Name of the element to search.

    Returns
    Type Description
    ElementId

    Element found, or empty if not found.

    Remarks

    Only elements with unique name (i.e. HasUniqueName(ElementId) returns true on that element) are found.

    This method is available since v7.6.

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

    Copyright ©2025 TopSolid - All rights reserved.