Running an API from within a Rulestream session is a powerful capability. Although Rulestream strives to provide a UI to the most common APIs of the supported CAD integrations, there will always be hundreds more that are available but not included with our integrations.
The setup required to run an API from Rulestream has always been a mystery to me. I know it could be done, but finding a good example that was documented in a way I could follow (I.e., step-by-step) just never happened.
I recently had the opportunity to help get a Solid Edge API to run from within a Rulestream session when Solid Edge has a regeneration event -- This is anytime the Solid Edge model rebuilds itself, such as the first time into a RS process step that displays geometry or when a geometric property is changed within a CAD process.
So I documented what I did.
What I learned is that there are many things to consider when doing this. And at the end of the day you need to be careful, as calling the wrong API at the right time can make a mess out of your model. Use with caution and after careful consideration and planning.
Here’s the background on this example:
The application consisted of three process steps:
What I’ve included in this article: