Discussions
Categories
Groups
Documentation
Knowledge base
Developer portal
App catalog
The Hub
GitHub
Home
Newly Imported
Restricted
ZF
Feature request for FTA
medini_1053009547
Upon checking recent project, It was identified that project owner has not followed all the rules for creating an unique event. which lead to an end result of several hundred base events with same id for multiple events or multiple ID for a same event. Which turns out to be big clean up project. Proposal: To have prompt dialogue box which warn/prevent user who try to create a similar event in diagrams under same project. This proposed feature is already available in some conventional FTA tools. Also suggest me if there is another way to prevent such mistakes early enough.
Find more posts tagged with
medini
medini legacy
Accepted answers
All comments
medini_1028038066
Thank you Janmey, this is indeed a good proposal. Typically medini foresees, that the events are created based on architecture, which means, that the MOE will be automatically created. If you have a component with failure modes and drag and drop on a FTA, this will create a small subtree for the block and the failure modes with OR gate. If dragging and dropping the same element again, this will create automatically a MOE. The idea based on the ID we used before, but some customers need to be able to have different events, even with same id, e.g. on import. The idea that you transform all events with the same ID to a MOE can be done today with a script. I'm currently not sure, Peter Ploß have it maybe already. I will check on our side and come back to you.
medini_1036016653
Hi Krasimira, if I'm reading the question of Janmey right, the question is not about creating MOEs but rather renumbering the events to carry unique IDs. For the latter a script is shared somewhere on the scripting forum, if I remember correctly. Apart from that, I have scripted creation of MOEs. Please refer to the following code snippet of the script "FTA\createAETsFromFailureModes.js": // create MOE, if FM was already modelled
// check, if mediniGetOpposites("element") is zero or not
var HWPFM_Event = oCause.mediniGetOpposites("represents"); //https://medini.freshdesk.com/support/discussions/topics/1000094076
if (HWPFM_Event.size() == 0) {
console.log(" - PET: HWPFM ''{0}'' does not yet have an FTA event.", oCause.name);
var sHWPartName = oCause.mediniGetContainer().name;
var eFMName = generateString("", sHWPartName, oCause.name); // e.g., "[C2101] Short circuit"
var eFM = createEventAndConnect(gPET, eFMName, "", oCause, true);
} else {
console.log(" - PET: HWPFM ''{0}'' already has an FTA event.", oCause.name);
// create further event node, representing the event (MOE, multiple occurring event)
var enFM = createEventNodeAndConnect(gPET, HWPFM_Event.get(0));
var eFM = enFM.event;
}
Best regards, Peter
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of