Aveva.PDMS.Convert DXF to PLT

Usually people use .plt for isodraft underlay, here are three methods for generating plt.

1. Pdms Command ( PLOT = D:\AVEVA\Plant\PDMS12.0.SP*\Plot\Plot.exe, Video) :

SYSCOM ‘PLOT PDMS C:\plot.dxf C:\plot.plt‘ 

2. Another good method is to use E3D, it can import dxf files without any difficulties and generate Draft Library.

3. Third method is to use Autocad and Autolisp script supplied with PDMS

Advertisements

AVEVA.PDMS.PML.CORE commands from PML

To run core command in 12 version and newer:

import ‘PDMSCommands’
handle ANY
endhandle
using namespace ‘Aveva.Pdms.Presentation.PDMSCommands’
!cmdMng = object PMLNETCOMMANDMANAGER()
!cmdMng.executeCommand(‘CORE COMMAND‘)    $* As an example ‘AVEVA.Delete’

How to make TTY mode auto-login shortcut to run script

Aveva PDMS arguments:

%pdms_installed_dir%\pdms.bat [mode] [project] [UN/PW] [MDB] [Load Method]

Sample:

%pdms_installed_dir%\pdms.bat TTY SAM SYSTEM/XXXXXX /PIPE $M/%dir_location%\scriptName.pmlmac

Aveva E3D arguments:

CALL “C:\Program Files (x86)\AVEVA\Everything3D2.10\mon.exe” PROD E3D init “C:\Program Files (x86)\AVEVA\Everything3D2.10\launch.init” TTY XXX SYSTEM/XXXXXX /MDB $m/macroPath

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

 

Categories