Method SubstituteGlobalComponent
SubstituteGlobalComponent(ElementId, ElementId, DocumentId, string, List<string>, List<SmartObject>)
Substitue all sub components by a compatible family
Declaration
[OperationContract]
[AvailableSinceVersion(7, 19, 0, 0)]
void SubstituteGlobalComponent(ElementId inOperationId, ElementId inElementId, DocumentId inFamilyDocumentId, string inCode, List<string> inKernelDriverNames, List<SmartObject> inKernelDriverValues)
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. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.19.