    

 ## On this page

  

 

 # addIcon

 Last update: 16.07.2025 

abstract fun [addIcon](add-icon.md)(iconFile: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

Registers an icon with ModelCenter. This icon can then later be used to customize Assemblies and Groups via the iconID property

#### Return

the id of the added icon

#### Parameters

iconFile