Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Application->activeEditObject is always null on this model

rolandas_vegis
Advocate

Application->activeEditObject is always null on this model

rolandas_vegis
Advocate
Advocate

Hello,

 

found a model on which Application->activeEditObject always returns null.

 

Tried changing the active component in the tree, deleting stuff. Nothing works - always returns null.

 

The method works fine on other models.

 

Link to model: https://a360.co/4a0CdHG

0 Likes
Reply
Accepted solutions (1)
227 Views
1 Reply
Reply (1)

john.kirchner
Autodesk
Autodesk
Accepted solution

This looks like a bug related to your model being a WorkingModel 
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-7D749DE5-1F6A-4864-AFF2-BB7F0E498668

We'll have to fix this on our end. In the meantime, this will work as a workaround instead of using activeEditObject directly on Application:

app = adsk.core.Application.get()
product = app.activeProduct
editObject = product.activeEditObject

 
Thank you for reporting this!



0 Likes