Tell if any features in timeline are red/yellow

Tell if any features in timeline are red/yellow

casey.rogers
Alumni Alumni
607 Views
1 Reply
Message 1 of 2

Tell if any features in timeline are red/yellow

casey.rogers
Alumni
Alumni

Is there a way to iterate through the timeline and tell if any of the features are reporting errors: showing up as red or yellow in the GUI?

 

I'm iterating through the timeline and calling isValid on each entity represented by each timeline entry and it is always returning true even if I break a feature such that it becomes yellow or red so I'm assuming isValid is not what I'm looking for.

 

        app = adsk.core.Application.get()
        ui  = app.userInterface
        design = app.activeProduct
        timeline = design.timeline
        for obj in timeline:
            ui.messageBox(obj.entity.objectType + ": " + str(obj.entity.isValid))
0 Likes
Accepted solutions (1)
608 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni
Accepted solution

This functionality is missing in the API but I think it would be good to expose something to provide this information.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog