I want to create relation "Allocation" between requirement & element.
But I found no related functions in factory.js.
Hi Qianqian,
the allocation of a requirement to an element of an architecture is implemented by a simple trace - so you can use in this case the createRelation method from the factory.js:
var req = ... // the requirementvar comp = ... // the architecture element - e.g. a SysML componentalloc = createRelation (req, comp, Metamodel.traceability.Trace);//...
Best regards,
Eckhardt