Visibility Commands
Below we will consider the commands that allow you to hide or show any model geometry (node).
Show Command
Example command (TypeScript):
view.runCommand({
name: "ShowNodesCommand",
uuids: ["<UUID1>", "<UUID2>"],
branch: true
})
Parameters:
Name |
Type |
Required? |
Description |
---|---|---|---|
|
|
+ |
List of nodes to be shown |
|
|
– |
If |
This command doesn’t return anything as a result.
Hide Command
Example command (TypeScript):
view.runCommand({
name: "HideNodesCommand",
uuids: ["<UUID1>", "<UUID2>"]
})
There is only one required parameter - uuids
. It’s a list of hidden nodes.
This command doesn’t return anything as a result.
Isolate Command
The Isolate command moves nodes passed in the parameters to rendering layer ‘1’ (the default rendering layer is ‘0’).
Example command (TypeScript):
view.runCommand({
name: "IsolateNodesCommand",
uuids: ["<UUID1>", "<UUID2>"]
})
The parameters and a return value are the same as for hide command.