Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

Replacment for GraphObjNew / GraphObjOpen

$
0
0

Hello everyone,

I just switched from DIAdem 2015 to DIAdem 2021 and I wanted to execute a script but got an error at the point where I use GraphObjNew:

 

Call GraphObjNew("FreeGraph","Metafile2")
Call GraphObjOpen("Metafile2")
MtaFileName = "@@T8@@"
MtaRelPos = "r-bot."
MtaHeight = 30.0
MtaRatioAdapt = 0
MtaWidth = 1/MtaRatio*MtaHeight
MtaPosX = 50.0-MtaWidth/2
MtaPosY = 77.97
MtaBackColor = ""
MtaBackRGB = 0
MtaEmbedded = 0
Call GraphObjClose("Metafile2")

 

The error message says: Variable is undefined. Is there another command that replaced GraphObjNew and GraphObjOpen, or can you recommend another workaround?

 

Thanks a lot for your help!


Viewing all articles
Browse latest Browse all 3197

Trending Articles