file Try to add an 'Item Flow'

3 days 15 hours ago #6058 by ebr
What do you means by anonymize?

Change the name of some concept? the architecture? automatically? I do not think so...

EBR

Please Log in or Create an account to join the conversation.

3 days 15 hours ago - 3 days 15 hours ago #6059 by ebr
The attached script changes the name of all element to their ID...

Do not forget to save your project before!!!


File Attachment:

File Name: anonymizer.py
File Size:0 KB
Attachments:

Please Log in or Create an account to join the conversation.

3 days 15 hours ago #6060 by Ralf Ebert
Hi ebr,

sorry, but I'm not able to download the script:
Forbidden

You don't have permission to access /media/kunena/attachments/138/anonymizer.py on this server.

Best regards,
Ralf Ebert

Please Log in or Create an account to join the conversation.

3 days 15 hours ago #6062 by ebr
Here you are.
#anonymizer.py
# WARNING: this script will rename all the elements of the model. There is no way back afterwards.
# Use with extreme care.
# Use on a copy of your project.
#
for e in modelingSession.findByClass(ModelElement):
  if e.isModifiable():
    e.setName(e.getUuid())
EBR

Please Log in or Create an account to join the conversation.

3 days 1 hour ago #6065 by Ralf Ebert
Hi ebr,

ebr wrote: Hi ralf,

To send us the project you can use WeTransfer and send me the link in Private message.


How can I send a private message to you? If I look into my profile I see an envelope icon, which I can use to send a private message to me. But in your profile I don't see such a icon

Best regards
Ralf Ebert

Please Log in or Create an account to join the conversation.

2 days 18 hours ago #6068 by pan
The anonymizer.py file is now accessible.
The following user(s) said Thank You: Ralf Ebert

Please Log in or Create an account to join the conversation.

Moderators: tma
Time to create page: 0.048 seconds
^ Back to Top