|
Procedures in Cimatron API
Using procedures you can create various entities like bodies, faces, lines etc. as well as execute some operations like add instances to assembly model, connect instances in assembly with each other.
Initializing procedures in Cimatron API
To start any procedure you have to have a reference to one of the model's interfaces: IMdlrModel that is a part model interface or the IAssemblyModel interface that is an assembly model interface. After that you call their method ::CreateProcedure with the appropriate input parameter that defines the procedure type and gets the reference to the IMdProcedure interface.
To fill in procedure parameters, you use the appropriate procedure interface, for example IMdExtrude to set extrude parameters.
After setting all the required parameters, the procedure executes by calling the IMdProcedure::Execute( ) method.
Remark
You can query procedures to get entities that were created by this procedure only. For example, if you have executed a procedure whose result is a topological entity, you may query the executed procedure using the IEntityQuery interface and get components of this entity. If a created entity is a body, it may be created using the MdExtrude procedure, in which case you would get the body itself, the body's faces, edges and vertices after querying its procedure.
Chart
The chart for this section of the API is displayed below. Click on an item in the chart to jump to that Help topic. To view the full system API chart, click here.
|