Search code examples
vbacatia

How do I import a STL file to a geometrical set?


I want to automatically insert some STL objects to a geometrical set.

Without a macro I open “STL Rapid Prototyping” and use “STL import”.

I am trying to do several adjustments faster by automation and therefore I need to avoid this manual step. I tried to record this procedure but the result is useless for me.

Is there a way to import an STL to a geometrical set with a (VBA) macro?

(Usually, I work with Generative Shape Design and use VBA for Macros)


Solution

  • Sorry but there are no APIs to perform the "Import STL" function on the STL workbench.

    As far as I know the only way to automate this task are to use WINAPI methods; that is simulating window/mouse/keyboard interaction using window handles and Windows messages. I have done exactly this task not too long ago. It is not difficult, it is just tedious.