Skip to content

[HELP] Import requirements from CSV/EXCEL to CAPELLA #105

Answered by ewuerger
jeremy-jimmy asked this question in Q&A
Discussion options

You must be logged in to vote

How to add custom attributes fields to my object REQ ?

Capella (Requirements plugin) is doing that in an overengineered way. While implementing some Requirement Bots that automate maintenance we used the API to its full extent already. Just to get you going instead of waiting for a demo notebook:
In order to add AttributeValues to a Requirement you can use the same create functionality as seen in the notebook. Here it would go like this:

from capellambse.extensions import reqif

requirement = model.search(reqif.XT_REQUIREMENT)[0]
requirement.attributes.create("int", name="Example", value=10)

If you forget to handover the type hint (here "int") then the API will tell you to do so, since …

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@jeremy-jimmy
Comment options

Comment options

You must be logged in to vote
2 replies
@jeremy-jimmy
Comment options

@jeremy-jimmy
Comment options

Answer selected by ewuerger
Comment options

You must be logged in to vote
11 replies
@Luffy-cpu
Comment options

@Wuestengecko
Comment options

@Luffy-cpu
Comment options

@Wuestengecko
Comment options

@Luffy-cpu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants