
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It is rather painstaking to use any API. What if trips to the manuals could be avoided when you need a API example quickly, pertinent to your current needs?
Could there be a way to push "API code blocks" into a text window as one builds manually in Fusion, like a "what you see is what you get" interface common in html editors? Even if it only showed static example code (in an early release version), that could provide timely examples the user could use right away.
The next level perhaps would be to show live API code directly which more perfectly equates to the last user action, complete with arguments filled in.
Is there enough information flowing by within the API events (and related event arguments) to reconstruct a 3d model from a "recording" of a user manually building it? This could be a way to drive such a thing, if the available data within the events that fire is complete enough to re-purpose for recording actions and values related to those actions, passed as arguments.
Such a window could have one tab for each language like the user manual for the API. As the user draws stuff and applies constraints, etc, the equivalent code is displayed or accumulated in the window, complete with arguments filled in, etc.
A fancier version would show the code needed to drill down into the api and set all the objects along the way. This code could be a different color, or on a unique visibility layer, than the code directly related to the user action, to reduce confusion.
API code could be grouped into blocks which correlate with the undo list, with means of suppressing various code, etc. Like show the meat of a call, not all the supporting code. Or the opposite, etc.
Event-driven code, like user pressed button or entered data, could also be shown below the original code but grouped separately.
This feels almost like an MS Excel "macro" kind of widget, but also shows the equivalent API code, as described above in one form or another.
I suspect even expert API users would appreciate being able to make API code examples on the fly by manually drawing what they want to draw, and copying the code snippets into their script, rather than trudging through a large API hierarchy manual. Instead, most API functionality could be explained and/or demonstrated to the user on an optional side window, as they manually perform actions in Fusion 360 the normal way.
To get started, a first version could merely echo the syntax hints and maybe code examples the user would find in the API user manual. This would also be a good way to organize code examples in context to the normal Fusion 360 user interface, as opposed to buried somewhere in a separate manual.
This kind of functionality would dramatically speed up use and learning of the API for everyone.
Solved! Go to Solution.