You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating objects from a new namespace (i.e. one that isn't already registered in the model), the namespace must be registered as xmlns:... on the root <Project> element. Not doing so results in a broken model which cannot be loaded in Capella, until either the namespace is registered or the offending element(s) removed.
In the same way, when removing the last element from a certain namespace, that namespace must be unregistered.
The text was updated successfully, but these errors were encountered:
In order for the types of model elements to be correctly identifiable,
the namespace has to be defined on the fragment's respective root
element. This commit adds new methods for this purpose, and ensures that
`GenericElement.__init__` calls them with the correct values.
Fixes#242
The manual namespace management introduced in #242 was flawed: First, it
didn't support accurately versioning the introduced namespaces based on
the model's active viewpoints, and second, it had to be done manually in
several places (which it wasn't).
The new approach instead introduces a new method `update_namespaces`,
which is automatically called while saving to bring all namespace maps
up to date.
When creating objects from a new namespace (i.e. one that isn't already registered in the model), the namespace must be registered as
xmlns:...
on the root<Project>
element. Not doing so results in a broken model which cannot be loaded in Capella, until either the namespace is registered or the offending element(s) removed.In the same way, when removing the last element from a certain namespace, that namespace must be unregistered.
The text was updated successfully, but these errors were encountered: