Message 1 of 5
Inspecting appearanceProperties causes F360 to crash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
- create a body and apply an appearance (eg. wood|solid(solid)|3D cherry)
- choose a script from Scripts and Add-Ins (doesn't matter which one, as long as it works!)
- Activate debug
- In VSCode - Add a breakpoint early in a script
- Run|debug
- Then in the VSC command Line put the following (if it isn't already in the script):
app = adsk.core.Application.get()
design = app.activeProduct
rootComp = design.rootComponent
body = rootComp.bRepBodies.item(0)
body.appearance.appearanceProperties
rot = body.appearance.appearanceProperties.itemByName('Rotation')
rot.value
In the debug run display, then try to inspect variable "rot"
On my machine F360 crashes without error messages or warnings within a second or two. It appears that everything works as long as VSC doesn't attempt to access/inspect the variable.
Peter
I'm not an expert, but I know enough to be very, very dangerous.
Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).
Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).