@isocam here is a code to get the appearance of each body present in a file.
import adsk.core, adsk.fusion, adsk.cam, traceback
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
for comp in design.allComponents:
for body in comp.bRepBodies:
ui.messageBox(f"Component: {comp.name}\nBody: {body.name}\nAppearance: {body.appearance.name}")
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
------------------------------------------------------------------------------------------------------------------------------
If my reply was helpful, please click the "Accept as Solution" button. It helps others get the answer quickly! A "Like" is always welcomed.
Rushikesh Kadam
Senior QA Engineer
Quality Assurance
Autodesk, Inc.