Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support filtering of model elements with FilterCriterions during diagram export #429

Open
kairibu opened this issue May 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kairibu
Copy link

kairibu commented May 29, 2024

Ticket #252 introduced the basic support of the Capella Filtering extension.
The current functionality lists all FilterCriterions that a model has and the FilterCriterions associated to a specific model element.

It would be great to have to possibility to apply FilterCriterions to diagrams and also context_diagrams before exporting it.

Usage could look like the following:

import capellambse

path_to_model = "xxx.aird"
model = capellambse.MelodyModel(path_to_model, jupyter_untrusted=True)
diagram = model.diagrams.by_name('[LAB] Architecture Overview')
diagram.filters.add(filterCriterions)
diagram.as_svg
@Wuestengecko Wuestengecko added the enhancement New feature or request label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants