Represents a group (folder) that organizes bodies within the Bodies node in the browser.
| Name | Description |
| add |
Adds the specified item into this group. The item can be a BRepBody, MeshBody, or another BodyGroup. If the item is already a member of another group it is moved out of that group and into this one. |
| classType |
Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
| deleteMe |
Deletes this group. The bodies contained within the group are not deleted; they are moved back out to the parent of the group. |
| item |
Function that returns the specified item within this group using an index into the collection. The returned item can be a BRepBody, MeshBody, or a nested BodyGroup. |
| Name | Description |
| attributes | Returns the collection of attributes associated with this group. |
| count | Returns the number of items directly contained by this group. This includes bodies and any nested groups. |
| entityToken | Returns a token for the BodyGroup object. This can be saved and used at a later time with the Design.findEntityByToken method to get back the same group. When using entity tokens it's important to understand that the token string returned for a specific entity can be different over time. However, even if you have two different token strings that were obtained from the same entity, when you use findEntityByToken they will both return the same entity. Because of that you should never compare entity tokens as way to determine what the token represents. Instead, you need to use the findEntityByToken method to get the two entities identified by the tokens and then compare them. |
| groups | Returns the nested groups (folders) contained within this group and supports the creation of new nested groups. |
| isLightBulbOn | Gets and sets if the light bulb of this group as seen in the browser is on or off. This controls the visibility of the bodies contained within the group. |
| isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
| name | Gets and sets the name of this group as seen in the browser. |
| objectType | This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object. It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType(): |
| parentComponent | Returns the parent component that owns this group. |