I am using an offline seat of PCDMIS 2023.1 SP2. I have two scripts that I have written using the DMIS SCRIPT EDITOR. They both compiled without errors, and run correctly from the play button inside the script editor. When I select
INSERT and
BASIC SCRIPT, the brows menu opens, looking for only for
*.bas files. My files are in the default location
C:\Users\Public\Documents\Hexagon\PC-DMIS\2023.1. Both scripts will not run inside my PCDMIS program. Looking thru the help files there is one difference that I am noticing that I could use help with.
Here is my code from the insert basic script menu.
CS1 =SCRIPT/FILENAME= C:\USERS\PUBLIC\DOCUMENTS\HEXAGON\PC-DMIS\2023.1\CHECK.BAS
FUNCTION/Main,SHOW=YES,,
STARTSCRIPT/
Here is a copy of one of the script files shown in the help files.
CS2=SCRIPT/FILENAME= D:\PROGRAM FILES\PCDMIS35\TEST.BAS
FUNCTION/Main,SHOW=YES,,
STARTSCRIPT/
ENDSCRIPT
I am wondering if my problem is the lack of the "ENDSCRIPT" statement? There doesn't seem to be any workaround that I can find to edit that into the program code, and I haven't found a menu setting that would enable the ENDSCRIPT.
Any help would be greatly appreciated!
Was 2023.1 your most recent install? I recall a time, maybe still occurs present, that the newest install of PC-DMIS would be the ONLY version that a .bas would run on an offline seat.
In order to switch between versions to use .bas files is to start that version of PC-DMIS to Run as Administrator first then close and Run as a standard user.