Search Results for

    Show / Hide Table of Contents

    Method SubstituteLocalComponent2

    SubstituteLocalComponent2(ElementId, ElementId, DocumentId, string, List<string>, List<SmartObject>, List<string>, List<SmartDesignObject>)

    Substitue a sub component by a compatible family

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 19, 335, 10)]
    void SubstituteLocalComponent2(ElementId inOperationId, ElementId inElementId, DocumentId inFamilyDocumentId, string inCode, List<string> inKernelDriverNames, List<SmartObject> inKernelDriverValues, List<string> inDesignDriverNames, List<SmartDesignObject> inDesignDriverValues)
    Parameters
    Type Name Description
    ElementId inOperationId

    Identifier of the top inclusion operation holding sub-component to substitute.

    ElementId inElementId

    Identifier of the element to substitute.

    DocumentId inFamilyDocumentId

    Identifier of the family Document to use for substitution (same family if needed)

    string inCode

    Instance code, or null if none.

    List<string> inKernelDriverNames

    Instance kernel driver names, or null if none.

    List<SmartObject> inKernelDriverValues

    Instance kernel driver values, or null if none.

    List<string> inDesignDriverNames

    Instance design driver names, or null if none.

    List<SmartDesignObject> inDesignDriverValues

    Instance design driver values, or null if none.

    Remarks

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

    This method is available since v7.19.

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

    Copyright ©2025 TopSolid - All rights reserved.