The API allows you to create SPARX objects (Packages and Elements) in a model. An example use case would be a tool that exports requirements from a database and creates requirement elements in your model (or vise versa).
A few important things to note:
- Models represent your “Root” packages.
- Things are added in a weird way- by accessing a collection of that type of object (e.g. Repository#GetModels()) and calling Collection<>#AddNew().
- Once you have created an object, you need to call #Update() on its parent. Order does matter. Not sure why.