hexagon logo

OLE automation error between 2013 MR1 SP5 and 2014 SP1

I am currently using 2013 MR1 SP5. I have several automation scripts i've been running for years, I installed 2014 SP1 on my CMM to prepare to start using it but apart from it opening the first time after installing, I haven't used it. I am still using 2013 to run the CMM. The issue is the now my BAS scripts won't run in 2013. I started up 2014 and the BAS program will run fine there, it just will not run in 2013 any more the ole automation error I get is at line 6 in my Bas Program which is this line

Sub Main()
Dim PCDApp, PCDPartPrograms, PCDPartProgram, PCDCommands, PCDCommand As Object
Dim Partnumber, Partname, Supplier, Count%, ECount%, TextLine, EmpList$ ( ), EmpNum% ( ), MachName$ ( ), MachNum% ( ), last$
Dim strPrgName$, strNewName$, strNoExt$, strPath$, FindDot

[B][I][U][COLOR="#FF0000"]Set PCDApp = CreateObject("PCDLRN.Application")[/COLOR][/U][/I][/B]
Set PCDPartPrograms = PCDApp.PartPrograms
Set PCDPartProgram = PCDApp.ActivePartProgram
Set PCDCommands = PCDPartProgram.Commands


this is the first time an upgrade has affected my basic scripts. I don't have a problem using 2014 on the CMM as I do 98% of my programming offline and the software isn't used for all the newfangled programming stuff they've put in.

But my question is, why. and can I fix it so I can still run older versions of PC-DMIS if I choose.

I have a ticket started on this issue.
Parents
  • I have two copies of all my scripts, one with the .6.1 extension so I can use them in the older version, and one with just PCDLRN.Application for use in the newer version.

    If you change the permissions on the registry key, you won't have to keep version-specific scripts.



    Sent from my SPH-L710 using Tapatalk
Reply
  • I have two copies of all my scripts, one with the .6.1 extension so I can use them in the older version, and one with just PCDLRN.Application for use in the newer version.

    If you change the permissions on the registry key, you won't have to keep version-specific scripts.



    Sent from my SPH-L710 using Tapatalk
Children
No Data