Author Topic: Useful utilities and code snippets for Addins or scripts  (Read 353 times)

shimon

  • EA User
  • **
  • Posts: 167
  • Karma: +5/-0
    • View Profile
Useful utilities and code snippets for Addins or scripts
« on: May 25, 2025, 03:50:58 pm »
Hi,
I have a accumulated some useful utilities and functions, mostly from this Forum. I was wondering what would be the most useful way to share these.
My list so far is:
  • Using a utility class to output to prompt
  • Using an output to console function that outputs to prompt, if in DEBUG mode ( by setting a variable)
  • A Package that has the Addin all ready to use, just by importing the package and enabling the Addinn
  • A function to add the current user (taken either from the EA Security or from the current Windows user-name) to a note  (or any other textbox). 
  • A function to add the current date to a note (or any other textbox)

Maybe I would add little other snippets to show how to use try and catch etc.

I don't know if to share them here, or open a GIT Repository.
Sincerely,
Shimon

P.S. I just started using AI to help me in my scripting. It makes some gross mistakes, but is still amazing.




« Last Edit: May 25, 2025, 03:52:46 pm by shimon »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Useful utilities and code snippets for Addins or scripts
« Reply #1 on: May 26, 2025, 05:10:55 am »
I share my stuff on github

Geert