Problem
A new module with attributes shall be created.
Ansatz – Approach
Uasage of createModule and AttrDef=create
Lösung – Solution
void createAttributes(Module mod)
{
Module oldCurrent=current;
current = mod;
AttrDef attrObjIdentifier = create object type "Text" attribute "BB_Object_Identifier";
AttrDef attrObjStatus = create object type "Text" attribute "BB_Object_Status";
AttrDef attrLinks = create object type "Text" attribute "BB_Outgoing_Links";
current=oldCurrent;
}
string creationPathOfTempModule="/VarCo/20 Sample Project/Administration/" tmpFileName;
Module newModule = createModule(creationPathOfTempModule, tmpFileName);
createAttributes(newModule);