| addByInsert |
Method that inserts an existing file. |
| addExistingComponent |
Method that creates a new occurrence using an existing component. This is the equivalent of copying and pasting an occurrence in the user interface. |
| addFromConfiguration |
Method that inserts a configuration from a configured design. The insert will fail if the configured design being used is not from the same project as the file it is being inserted into. |
| addNewComponent |
Method that creates a new component and an occurrence that references it. |
| addNewComponentCopy |
Method that creates a new occurrence by creating a new component that is a copy of an existing component. This is the equivalent of copying and using the "Paste New" command in the user interface. This is different from the addExistingComponent in that it's not a new instance to the existing component but a new component is created that has it's own definition (sketches, features, etc.) and a new occurrence instance is created to reference this new component. |
| addNewExternalComponent |
Method that creates a new occurrence by creating a new external component (X-Ref) that is not saved yet. This is similar to the "New Component" command in the UI when creating an external component, where you specify a name and location but the component is created in-memory without being saved immediately. This allows programs to create and populate an external component without needing to save it first, and makes undo possible. The component will be saved automatically when the parent assembly is saved. |
| asArray |
Get the current list of all occurrences. The occurrences are returned in the same order as they appear in the browser. |
| 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(). |
| item |
Function that returns the specified occurrence using an index into the collection. |
| itemByName |
Returns the specified occurrence using the name of the occurrence. |