When you edit a SketchUp component, you can edit the component definition or the instance. When you edit the definition, you change every component instance. 编辑SketchUp组件时,可以编辑组件定义或实例。编辑定义时,会更改每个组件实例。When you edit the instance, the component becomes an unique component and no longer reflects changes to its fellow components.编辑实例时,该组件将成为一个唯一的组件,不再反映对其他组件的更改。
For example, say you're modeling a picket fence. In your fence model, shown in the following figure, the Fence Panel component contains subcomponents: Post, Rail, and Picket.例如,假设你正在建模一个尖桩围栏。在您的围栏模型中,如下图所示,围栏面板组件包含子组件:立柱、栏杆和栅栏。
The following sections explain a few different ways you can edit components, using the Fence Panel component as an example.以下部分以围栏面板组件为例,解释了编辑组件的几种不同方法。
To edit all instances of a component, follow these steps:要编辑组件的所有实例,请执行以下步骤:
Use the SketchUp drawing tools to edit your component. 使用SketchUp绘图工具编辑组件。In this example, we used the Line, Tape Measure, 2 Point Arc, and Push/Pull tool to change the top of the Picket component. All component instances change as you draw.在这个例子中,我们使用直线、卷尺、两点弧和推/拉工具来更改Picket组件的顶部。绘制时,所有组件实例都会发生变化。
Say you want to edit only one instance of a component. For example, perhaps you want to model two or more picket styles so that you can experiment with the options. Follow these steps to edit one instance but leave the other component instances as they are:假设您只想编辑一个组件的一个实例。例如,也许您想模拟两种或多种纠察队风格,以便您可以尝试这些选项。按照以下步骤编辑一个实例,但保留其他组件实例不变:
Context-click the selected instance and choose Make Unique, as shown in the figure. 右键单击所选实例并选择“唯一化”,如图所示。If you have the Entity Info panel open, you see that SketchUp changes the Definition by adding #1, or something similar. 如果您打开了“实体信息”面板,您会看到SketchUp通过添加#1或类似内容来更改定义。By making the instance unique, you're basically creating a new component based on your original.通过使实例独一无二,您基本上是在原始组件的基础上创建了一个新组件。
Use the SketchUp drawing tools to make changes to the component. In this case, we made a slight change by selecting the edges on each side of the picket and moving them inward 5/16 inch. This made the picket width slightly narrower.使用SketchUp绘图工具对组件进行更改。在这种情况下,我们通过选择尖桩两侧的边缘并将其向内移动5/16英寸进行了轻微的更改。这使得纠察线的宽度略微变窄。
When you use instances of the same component throughout a model, you can easily replace all instances of a component with a completely different component. To replace one component with another, follow these steps:当您在整个模型中使用同一组件的实例时,您可以轻松地用完全不同的组件替换组件的所有实例。要用另一个组件替换一个组件,请执行以下步骤:
When you edit a component with the Solid tools, the steps are little different than the steps for editing components with the other drawing tools.使用Solid工具编辑零部件时,步骤与使用其他绘图工具编辑零部件的步骤几乎没有什么不同。
The following steps explain how to edit a component with the Solid tools, using the fence model as an example:以下步骤以围栏模型为例,解释了如何使用Solid工具编辑组件:
Edit the component with a Solid tool In this example, the Subtract tool cuts a hole in the Picket component. In the Entity Info panel, notice that the name of the component instance changes from Picket to Difference.使用实体工具编辑零部件在本例中,减法工具在拾取零部件中切割一个孔。在“实体信息”面板中,请注意组件实例的名称从Picket更改为Difference。
Click the Create button. A dialog box asks whether you want to replace the component definition.单击“创建”按钮。一个对话框询问您是否要替换组件定义。