Method SubstituteGlobalComponent2
SubstituteGlobalComponent2(ElementId, ElementId, DocumentId, string, List<string>, List<SmartObject>, List<string>, List<SmartDesignObject>)
Substitue all sub components by a compatible family
Declaration
[OperationContract]
[AvailableSinceVersion(7, 19, 335, 10)]
void SubstituteGlobalComponent2(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.