SVGSetFile

 

Change the SVG file of the SVG objecet to the corresponding SVG file. If the capacity is more than 1 MB, it cannot be used.

 

void @SVGSetFile(string classname, string filename);

 

Parameters

string classname : The class name of SVG element

string filename : SVG file name to be changed (If the path name is omitted, it will be changed to a file in the Graphical folder, and the full path name can also be used.)

 

Return Value

None.

 

Example )

If($DI_0000 == 1)

@SVGSetFile("SVG1", "ON.svg");

else

@SVGSetFile("SVG1", "OFF.svg");

 

If DI_0000 tag is 1, apply ON.svg file if 0 and OFF.svg file.

 

Version Information

First supported version: 10.3.6.21

 

Related Helps)

@SVGSetFile()

@SVGElementColor()

@SVGElementMove()

@SVGElementRotate()

@SVGElementScale()

@VSVGElementText()

@VSVGElementTextSize()

@VSVGElementTransform()

@VSVGElementReset()

@VSVGElementVisible()