Where are Proxies in the object model?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to find where proxy objects show up in the Fusion 360 object model.
From the docs, (notably "Documents, Products, Components, Occurrences, and Proxies" (http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-88A4DB43-CFDD-4CFF-B124-7EE67915A07A) proxy objects are what implements the ability for Fusion to portray a single component multiple times.
While the possibly multiple instances of a component are represented by Occurrence objects that reference the actual Component, the details (sketches, features etc) of the instances are represented by Proxies that point to their corresponding details ("nativeObject") in the actual Component. At least, if I understand the docs correctly.
We can see in the API Reference that the many object types which may be found contained in a Component (such as Sketch and all the SketchXxx objects, all the xxxConstraint objects, all the XxxFeature objects, and the JointXxx objects) all have the nativeObject property that allows then to serve alternatively as proxies. So far so good.
From the above-mentioned page, and the object model (https://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/images/Fusion.pdf), I think I understand that the main "component tree" is implemented like this diagram:
[Fig 1]
which is a slightly redundant portrayal, and really reduces to this recursive pattern:
[Fig 2]
Now, from page "Documents... Proxies", I note that properties for bRepBodies (shown in blue) that probably implement this pattern of proxy --> nativeObject:
[Fig 3]
So I would expect that other parts of a component would be proxied (as shown in red) like in this diagram:
[4]
However, Occurrence contains no properties like sketches, features and so on.
So that's where I'm stuck. Not knowing where those proxies are to be found undermines my whole understanding of the basic skeleton of Fusion! Any clues?