The LeafFromInstance object can be used whenever a Leaf object is expected as an argument. Leaf objects are used to specify the items in a display group. Leaf objects are constructed as temporary objects, which are then used as arguments to DisplayGroup commands.
The LeafFromInstance object is derived from the Leaf object.
import displayGroupMdbToolset
This method creates a Leaf object from a sequence of part instance objects.
LeafFromInstance
Required argument
A PartInstance object or a Sequence of PartInstance objects.
Optional arguments
Return value
A LeafFromInstance object.
Exceptions
If an invalid argument is passed to this method: