Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Application->activeEditObject is always null on this model

1 REPLY 1
SOLVED
Reply
Message 1 of 2
rolandas.vegis
118 Views, 1 Reply

Application->activeEditObject is always null on this model

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

1 REPLY 1
Message 2 of 2

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!



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report