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: 

Timeline error flag

3 REPLIES 3
Reply
Message 1 of 4
MichaelT_123
193 Views, 3 Replies

Timeline error flag

Hi TF360,

 

Often, an error happens in one or more Timeline objects during parametric simulation.

Yes, it is possible to detect such errors and the index(es) in the Timeline Object by simply enumerating the whole Timeline and checking the health of every item. The script is trivial, but it consumes valuable processing time.

Obviously, the F360 engine has such functionality built-in already.

The question…

Would it be possible to expose such an “error/warning/health flag” via API as the supplementary property of Timeline Object?

 

Regards

MichaelT

MichaelT
3 REPLIES 3
Message 2 of 4
BrianEkins
in reply to: MichaelT_123

I'm not sure what the question is. As you said, it is possible now to get the health from each item in the timeline. Are you suggesting some new functionality that would return a list of everything that's currently not healthy?

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 4
MichaelT_123
in reply to: BrianEkins

Hi Mr BrianEkins,

 

Yes, a global flag indicating an error somewhere on the Timeline would be very useful. 

Something like:

propertyValue = timeline_var.isHealthy

Another option would be pooling all faulty timeline objects and presenting them as a list.

Something like:

propertyValue_lst = timeline_var.warningsOrErrors

 

I anticipate that such extension(s) would be pretty easy to implement. Also, it wouldn't cause backward compatibility/interference issues to the whole F360 API system.

 

Regards

MichaelT

 

 

 

MichaelT
Message 4 of 4
MichaelT_123
in reply to: BrianEkins

Hi Mr BrianEkins,

 

I have discovered the reason for your confusion (and now mine also) … which stems from the vernacular/naming convention of related objects.

There are two of them whose names are strikingly similar.

  • Timeline Object               as Design.timeline
  • TimelineObject                as Design.timeline.item(index)

In my inquiry, I referred to Timeline Object (Design.timeline).

 

Regards

MichaelT

MichaelT

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

Post to forums  

Autodesk Design & Make Report