hexagon logo

Custom code to reduce data entry

I wasn't sure to post this in the code section as I don't have code to share.

I'm absolutely NOT a coder nor do I want to learn anything but the basics, it just isn't my thing. However, I did learn enough python to cut data entry in half with our GOM software. I'm looking to get a few data entry fields removed in pcdmis now. Not critical, just one of those small improvements to make operator life better.

I've read that pcdmis code is 'BASIC' language based, and you can export this language somewhow. Then I've read it is written in C++ by a post by Neil and my head starts spinning. Can someone share how I export pcdmis command mode stuff into BASIC language export?

I see ASSIGN in pcdmis when I do a variable yet, in BASIC a variable is defined like so:

Dim item_number as String
item_number = "S-12345"


If I drop stuff like the above into pcdmis command mode is it going to understand it? Did I read correctly that is understands BASIC language. I don't feel like dealing with pulling Python programs into the dmis.

Thanks.

Parents
  • it sounds like you're getting confused between how the core code of PC-DMIS is handled and all of the various ways of interacting with a routine through the edit window. To clarify, the PC-DMIS core application is written in C++ but that code is not something a general user would have access to, it is only available to Hexagon software developers. When it comes to PC-DMIS routines and interacting with the code in the edit window it is different. The underlying routine is a form of database which is encrypted and what you see in the edit window is simply a wrapper - it is not plain text as many people assume. You can get some appreciation for this by switching between the various display options - summary mode, command mode & DMIS mode which are all just different ways of displaying the underlying routine. There are numerous ways of exporting / importing code for a routine or of interacting with the edit window via automation - which I think is what you are looking for. PC-DMIS provides a basic script editor which uses a very old version of cypress enable scripting (which is VB based) but you can actually use pretty much any object orientated programming language, so long as you are able to set it up to use the PC-DMIS automation objects (see the help: https://docs.hexagonmi.com/pcdmis/2020.2/en/helpcenter/mergedProjects/automationobjects/webframe.html) which is what Henniger123 is referring to.

    A little more information on exactly what it is you are trying to achieve would help us understand your needs and to maybe propose possible solutions.

Reply
  • it sounds like you're getting confused between how the core code of PC-DMIS is handled and all of the various ways of interacting with a routine through the edit window. To clarify, the PC-DMIS core application is written in C++ but that code is not something a general user would have access to, it is only available to Hexagon software developers. When it comes to PC-DMIS routines and interacting with the code in the edit window it is different. The underlying routine is a form of database which is encrypted and what you see in the edit window is simply a wrapper - it is not plain text as many people assume. You can get some appreciation for this by switching between the various display options - summary mode, command mode & DMIS mode which are all just different ways of displaying the underlying routine. There are numerous ways of exporting / importing code for a routine or of interacting with the edit window via automation - which I think is what you are looking for. PC-DMIS provides a basic script editor which uses a very old version of cypress enable scripting (which is VB based) but you can actually use pretty much any object orientated programming language, so long as you are able to set it up to use the PC-DMIS automation objects (see the help: https://docs.hexagonmi.com/pcdmis/2020.2/en/helpcenter/mergedProjects/automationobjects/webframe.html) which is what Henniger123 is referring to.

    A little more information on exactly what it is you are trying to achieve would help us understand your needs and to maybe propose possible solutions.

Children
No Data