Application->activeEditObject is always null on this model

Application->activeEditObject is always null on this model

rolandas_vegis
Advocate Advocate
285 Views
1 Reply
Message 1 of 2

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
Accepted solutions (1)
286 Views
1 Reply
Reply (1)
Message 2 of 2

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