How to name timeline features through API?

How to name timeline features through API?

Anonymous
Not applicable
834 Views
1 Reply
Message 1 of 2

How to name timeline features through API?

Anonymous
Not applicable

In the gui's timeline I can right click a feature such as an extrude or a move to name it.  But in the API the name property for those features is read only and attempting to set it silently fails.  How does one set the name as displayed in the timeliine through the API?

0 Likes
Accepted solutions (1)
835 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni
Accepted solution

The TimelineObject doesn't provide read or write access to names.  This is an oversight that we just recently noticed and are working to add it in the API.  It should be available in the first update next year.

 

You mentioned that you are able to get the names of features but not change them.  You must have the discovered the ability to go from the TimelineObject to the object the timeline node represents.  Those objects should support the name property.  Unfortunately, there's another oversight there and the name property of the Feature object is currently read-only.  You can rename sketches and construction geometry but not features.  We need to add support for this.  So at this time I don't see any way of renaming a feature using the API.  Sorry. 


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