Author Topic: VB Scripting - Pattern object ?  (Read 457 times)

MarcinG

  • EA User
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
VB Scripting - Pattern object ?
« on: May 08, 2025, 09:28:24 pm »
Hi,

Is anyone aware if Design Patterns are scriptable ?  In other words - I can programmatically created packages, add diagrams, and add elements to those diagrams.  But can I add defined pattern(s) to diagrams ?

Best regards
Marcin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VB Scripting - Pattern object ?
« Reply #1 on: May 08, 2025, 09:44:56 pm »
I'm not sure, I've never really used any of those pattern.

What I did do in the past is use a "template" package to create a effectively create a pattern by first duplicating the package, and then renaming certain items.

IIRC the patterns are stored as an xmi export somewhere. If you can find that location, you can import it using a script.

Geert