What is the difference between Duplicate with References and Duplicate?

Question:

What is the difference between Duplicate with References and Duplicate?

Answer:

When you right-click on a block, there are two options for copying the block: Duplicate and Duplicate with References. 

Duplicate: Makes a copy of the block and a copy of all blocks referenced in that block. 

duply.gif

In this case, think of Duplicate as "copy block & nested blocks". Duplicate won't make copies of variable chips. It creates a whole new block and new nested blocks. In the gif above, you can see how Implicit Body_0 becomes Implicit Body_0_copy and Sphere_0 becomes Sphere_0_copy. This is useful when you want to copy a block set up and be able to change all of the parameters without links back to the original.

When to use: If you want to copy a block you already have and change its block inputs.

 

Duplicate with References: Makes a copy of the block but uses the original referenced blocks (referenced blocks aren't copied).

duprefss.gif

In this case, it creates a copy of the top-level block, but not any of the nested blocks. The nested blocks are the same block as the original, and therefore will update values when one of them is changed. This is useful for changing parameters on the top-level block while keeping the input the same. You can see that Implicit Body_0 became Implicit Body_0_copy while Sphere_0 remained the same. When using this, don't forget that the referenced inputs are the same to save any mistakes down the road.

When to use: If you want to copy a block but keep the same block references.

In both cases, a new block is being created, therefore Duplicate and Duplicate with References are not recommended as a substitute for creating a variable. 

More on this topic:

Keywords:

 to ntop what the difference between of duplicate ref references with them when use copy modelling modeling 
Was this article helpful?