
// Script function: Example of a library
//see the script to call the library at https://www.globalsino.com/EM/page2597_Script_to_library1.s

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


taggroup GlobalSino ()
{
tagGroup rootTg = NewTagGroup()
tagGroup EMtgA = NewTagGroup()
tagGroup EMtgB = NewTagList()

EMtgA.TagGroupSetTagAsString( "x", "String tag A")
EMtgA.TagGroupSetTagAsString( "y", "String tag B")
EMtgA.TagGroupSetTagAsString( "z", "String tag B")

EMtgB.TagGroupInsertTagAsString( 0, "String tag 0" )
EMtgB.TagGroupInsertTagAsString( 1, "String tag 1" )
EMtgB.TagGroupInsertTagAsString( 2, "String tag 2" )

rootTg.TagGroupSetTagAsTagGroup( "TagGroup", EMtgA )
rootTg.TagGroupSetTagAsTagGroup( "TagList", EMtgB )

rootTg.TagGroupOpenBrowserWindow( "My TagGroup Example", 0 )
}