Click or drag to resize
SoNodeCopy Method (Boolean)

Creates and returns an exact copy of the node.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.2.0.0 (2023.2.0)
public virtual SoNode Copy(
	bool copyConnections


Type: SystemBoolean

Return Value

Type: SoNode

If the node is a group, it copies the children as well. If copyConnections is true (it is false by default), any connections to (but not from) fields of the node are copied, as well. Note that multiple references to a node under the node to be copied will result in multiple references to the copy of that node. To be copyable, a custom node must define a default contructor. Note that OIV require that every custom node must define a default contructor.

Please also note that instance data other than Inventor fields and public children will not be copied by this method. If extra data needs to be copied as well, this method will have to be manually overridden.

See Also