Main Content

Copy SimBiology Blocks

When building models in theDiagramtab of theSimBiology Model Builderapp, you can copy and paste blocks usingCtrl+CandCtrl+V. You can also use the context (right-click) menu. TheCopy Optionsfrom the context menu lets you decide whether to copy the connected states (or quantities) when copying a reaction, rule, event, or observable. The default copy options are set tofalse, which means that the app does not create copies of the connected states. You can also access the copy options fromPreferences>Model Building>Copy Options.

  • UsingCtrl+Vincreases the compartment size if there is not enough space for what you are pasting.

  • Using the context menu gives you a better control of where you want the copied blocks to appear. The app uses the current location of the mouse pointer to place the new blocks.

Note

On macOS, use thecommand关键不是Ctrl.

Compartment Blocks

If you select a compartment and copy it, the app copies the compartment block and any blocks that are inside the compartment, even if they are not visible or selected explicitly. The app does not copy any blocks that lie outside the compartment, even if they are connected to the blocks within it.

Species Blocks

If you copy a species block that is dosed, the associated dose is not copied. You can add a dose to the copied species manually in theDosestab.

Reaction Blocks

If you select a reaction block, the app copies the reaction block, the reaction string, and the reaction rate. The app does not create copies of the associated species and reaction rate parameters of the reaction.

You can change the default behavior as follows. Right-click the block. SelectCopy Options>Model Building. In theCopy Optionssection, setWhen copying a reaction copy all of its statestotrue.

参数块

You can copy a parameter block. However, the block shows up in the diagram only if the parameter is the left-hand-side of a repeated assignment rule, rate rule, or event function. For reaction rate parameters, seeReaction Blocks.

Rule Blocks

Only repeated assignment and rate rules show up in the diagram as blocks.

If you copy a rule block, the app uses the original rule string for the copied block. In other words, the copied rule block has the connections to the same blocks as the original rule block. The app does not create copies of the associated model components.

You can change the default behavior as follows. Right-click the block. SelectCopy Options>Model Building. In theCopy Optionssection, setWhen copying a rule copy all of its statestotrue.

Note

In theBrowsertables, you can copy any model component, including the ones that do not show up as blocks in theDiagramtab.

See Also

|

Related Topics