    

 ## On this page

  

 

 # construct

 Last update: 30.07.2026 

abstract fun [construct](construct.md)(dhid: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), freeDaX: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), dialogParent: [JFrame](https://docs.oracle.com/javase/8/docs/api/javax/swing/JFrame.html), pluginid: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), dh: [DataHistory](./../-data-history/index.md), mc: [ModelCenter](./../-model-center/index.md), context: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Container](https://docs.oracle.com/javase/8/docs/api/java/awt/Container.html)

Construct your plug-in.

#### Parameters

dhidThe unique Data History ID. Will be unique per instance of ModelCenterfreeDaXTrue if this is the standalone Data Explorer product and running without a license.dialogParentA JFrame to use as a parent to any dialog boxespluginidA unique ID for your plugin instance that won't changedhThe Data History object. Do not call this object on the Swing Event Dispatch ThreadmcThe ModelCenter object. Do not call this object on the Swing Event Dispatch ThreadcontextThis is the name of the plug-in, such as "2D Line". This is useful if you have a single plug-in with multiple behaviors.