|
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 source replacement
The components selected for replacement can have one source or various sources.
The set of components is formed in the Components field in the following ways:
•Selecting components or their subassemblies in the Design Tree or in the model's graphic area.
To select a subassembly, select it in the Design Tree or select all its components with a box in the graphic area.
•Selecting components using paths to their source files.
Invoke the command Select — By source. This will launch the component selection subprocess. Select the desired components and confirm your selection. The system will return to the component source replacement process. More about selection of component using the path to file...
|
In some cases, specifying components is unavailable. For example, you can't select a component to replace a source if it's a local part, an array instance, a dependent implementation component, etc. Furthermore, you can't specify a subassembly component if the subassembly itself is already selected, and vice versa—you can't specify a subassembly if its component is selected. |
•Adding multiple inserts of the same model to the list.
With one of the model inserts already selected, highlight its row in the Components field and click one of the following buttons:
Find the same ones in the editable model — to select all first-level nesting inserts 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 nesting levels (i.e. components inserted not only in the current assembly, but also in its subassemblies, subassemblies of these subassemblies, etc. to the full depth),
Find all versions in the editable model — to select all inserts of all implementations of this model at the first nesting level (i.e. components inserted directly into the current assembly, the source of which is both the model itself and its implementations).
Inserts of the specified model will be added to the previously selected components.
|
If none of the lines in the Components field are selected, then pressing one of the buttons described above will select all inserts of all components contained in the field (according to the button pressed). |
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.
|
The required components can also be specified before starting the operation. |
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.
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. |
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