Blake Courter hosted a Webinar on using the API in SpaceClaim. Here are notes I took from the hour-long presentation. Most watching the Webinar had little or no experience at programming. Biggest user of API is SpaceClaim itself.
Spaceclaim's API is a wrapper layer using .Net, and so you can use C++, C#, F#, Visual Basic, and other programming languages. (Mr Courter uses C#.) It is only partly documented, and so you may need to contact SpaceClaim for help. It also helps to know a CAD system, Visual Studio, understand vector math and linear algebra, and have experience at programming.
For instance, you can:
- Look for all edges 2" or longer.
- Add custom panels that implement Windows forms.
- Create new tools.
- Add custom file types to dialog boxes.
- Generate temporary graphics.
- Implement tools for custom graphics
Add-ons are forwards compatible. Each new version of SpaceClaim updates the API, but the company always includes versioning, so that old apps work with APIs -- the only CAD vendor to provide this benefit.
Everything in the APIs is done through commands, which makes it easy to undo. While many threads can read at the same time, only one can write at a time.
He showed some apps built on SpaceClaim. One is jewelry design software. Because it uses solid modeling, the designer knows how much gold is needed. It has its own library of stones and patterns (settings). One routine scales the diamond parts, depending on where they are on the surface of the ring.
You can watch a recorded video of the seminar here: