AVEVA.PML.NET/PML.Convert integer number to three digit

Conditions:

!intA = 11                         $* Integer variable

!stringB=’000′              $* Three zero`s in string variable

Continue reading AVEVA.PML.NET/PML.Convert integer number to three digit

Advertisements

CMD.Batch.Join many PNG to one TIFF (SpriteSheet for Unity3D)

For creating the sheet we will use ImageMagick’s montage.

Batch Code:

set ImageMagickRoot=”c:\Program Files\ImageMagick-7.0.2-Q16\magick.exe”
set ScreenshotFolder=”C:\Users\me_hungry\Documents\Unity3d\testWater\ScreenshotFolder”
%ImageMagickRoot% montage %ScreenshotFolder%\*.png -mode concatenate -tile 5×5 -background transparent %ScreenshotFolder%\sprite_sheet.tiff

Thanks to TwinFox

 

Template for PML .NET

using Aveva.PDMS.PMLNet;
[assembly: PMLNetCallable()]

namespace Aveva.Pdms.PMLNetClass
{
[PMLNetCallable()]
public class PMLNetClass
{
[PMLNetCallable()]
public PMLNetClass(){}

[PMLNetCallable()]
public void Assign(PMLNetClass that){}

[PMLNetCallable()]
public void Run(){}
}
}