Please enable JavaScript to view this site.

Navigation: 2. 3D Modelling > Components > Replacement of components

Changing the sources of components

Scroll

When working with an assembly, you may need to replace the source of one or several components with another model. KOMPAS-3D allows to change the source of several inserts of the same model or to specify one source for several different components. For this purpose, the component replacement process is used.

The source of one component can be replaced also when editing its properties, however, it is recommended to perform the replacement in the Replace component process, as this provides the opportunity to establish correspondence between objects of the original component model and the model specified for replacement (see below).

The process of replacing the source allows you to select a different source for components at any nesting level. When editing in place of a subassembly component, the replacement is available only for components of this subassembly.

The replacement of subassembly components is sent to its source file.

The process of replacing the source of components is initiated by the Replace components command .

After invoking the command, it is required to select components which source requires replacement, assign a new source for the components and complete the operation. If all the selected components are inserts of the same model, then it is also possible to establish correspondence between the new and old sources of inserts.

Selecting components for changing the source

The set of components is formed by specifying the components themselves or objects belonging to them in the Design tree or in the graphic area of the model. To select a subassembly, specify it in the Design tree or use a selection window to specify all its components in the graphic area.

The components selected for replacement can have one source or various sources.

The required components can be specified before starting the operation.

In some cases, specifying of components is unavailable. For example,it's not available to select a component for source replacement if it is a local part, an array instance, a dependent version component, etc. Moreover, it is impossible to specify a subassembly component if the subassembly itself is already specified, and vice versa — to specify the subassembly if its component is specified.

The specified components are highlighted in the graphic area, their list is displayed in the Components field. The component row in the field contains not only the name of this component but also the name of the assembly it belongs to, and for components in deeper levels of nesting, the names of subassemblies at all these levels.

If you need to add all inserts of the same model to the list of replacements, then after specifying one of them, highlight the row of this insert in the Components field and press one of the following buttons:

Find the same ones in the editable model — to select all inserts at the first-level of nesting of this model (i.e. components inserted directly into the current assembly),

Find the same for the entire depth — to select all inserts of this model at all levelsof nesting (i.e., components inserted not only into the current assembly but also into its subassemblies, the subassemblies of these subassemblies, and so on to the entire depth),

Find all versions in the editable model — to select all inserts of all versions of this model at the first-level of nesting (i.e. components inserted directly into the current assembly, sourced from both the model itself and its versions).

The insertions of the specified model will be added to the previously specified components.

If no row in the Components field is specified when pressing one of the described buttons, then all inserts of all components contained in the field will be selected (corresponding to the pressed button).

Assigning a new source for components

To specify the model file that will be the source for all selected components, click Source file field, select the required file in the dialog that appears, and click Open.

The full model file name is shown in the Source file field of the Parameter panel.

If necessary, you can view the geometry of the selected model by pressing the Model window display button next to the Source file field. A window titled Model-source, in which the model is displayed, appears. Click this button again to close the window.

Interchange file format can be selected as the component source. In this case the component will be converted to an imported component. For such a model, geometry viewing is not available (the model window display button is absent).

If the change source file of the imported component operation is performed for the imported component it can remain imported or become a regular component in case KOMPAS-file is selected. Details...

If the selected model contains versions, additional numbers, variants of geometric representation, then you can:

Select the required version (also additional number and option) which will serve as the source of all components.
For this, the corresponding lists in the file selection dialog and on the Parameter panel are used (they are displayed if the model contains the corresponding versions, additional numbers, options).

Replace the source versions (additional numbers, variants) assigned to components with the corresponding versions (additional numbers, variants) of the specified model.
To do this, enable the Establish versions and variants by name matching option. The source of each component will be replaced with the corresponding version (additional number, variant) of the new model, and the lists of versions, additional numbers, and variants will no longer be displayed.

The replacement is performed as follows:

the version of the model is replaced with the version having the same number,

the additional number is replaced by the same additional number,

the variant will be replaced by a variant with the exact same name, if the numbers of the versions for which both variants are created match.

If the selected model does not include a version with the required number, then the source of the component becomes the base version.

If the selected model contains a corresponding version but does not have an option with the required name, then this version with the Default option becomes the source of the component.

If there is no corresponding additional number in the selected model, the new component source will not have an additional number.

Displaying the model with versions in the Model-source window has specific features.

If the Establish versions and variants by name matching option is enabled, then the main version of the model is displayed in the window, and if it is disabled, the version selected as the source of components is shown.

Establishing correspondence between the old and new sources of components

If all the selected components have the same source, i.e., the replacement is performed for inserts of the same model (including the same version, additional number, variant of the geometric representation), then it's available to set up a correspondence between new and old insertion sources. Setting correspondence allows to maintain the functionality of matings involving replaced components and the associativity of geometry built using these components.

To establish correspondence, click Create with matching in the Creation options section. This will start the establishing correspondence process. Perform the necessary actions in the process and click Create object . The correspondence will be established, and the operation of source replacement is completed.

If the components source is lost, establishing correspondence is unavailable.

Completing the operation

To complete the operation with the replacement of the source of selected components, click Create object .

If the matching of the old and new sources (see above) is fulfilled, then the completion of the matching process simultaneously completes the operation.

After executing the operation, it is required to rebuild an assembly.

If you want to cancel the replacement of the source components, click Finish .

See Also

General information about components

Adding components: Overview

© ASCON-Design systems, LLC (Russia), 2025. All rights reserved.