I´m trying to create a Body using the Body.CreateFromFace(Face face) function. The problem is that the Face class has no constructor, static members to create it are not available neither. So I don´t know how to create a Face to use it as a parameter of the function.
it is not possible to create a Face directly using the API. RobotStudio has limited modeling functionality, and there are more APIs for traversing a geometry than creating one.
There are APIs that corresponds to the create functions on the Modeling Tab.
In RobotStudio the Face object cannot exist on its own, instead it is always “inside” a body. So while you cannot create a face on its own you have lots of ways of generating surfaces (Face) which you can then use.
For example, I want to break up a solid object into its faces. Then I could take each individual face and put them in a seperate body. Like this:
// Check that we have an active station
Station _station = Project.ActiveProject as Station;
if (_station == null) return;