hexagon logo

paste code to pc-dmis

Shouldn't I be able to copy a code from the forum and paste it to a pc-dmis program?
  • no - plain text is not the same as commands being displayed textually.
  • Shouldn't I be able to copy a code from the forum and paste it to a pc-dmis program?


    This floored me when I found out that you can't, because I had previously programmed Geomeasure where you can.

    PC-DMIS's Edit Window (Command Mode FTW!) is not text. It is a grid of cells, like Excel, that overlays a very deep tangle of computer programming code.
    Some cells in blue are user-editable, some in black are locked in place. Each cell one is more or less the cover of a book of lots and lots of "deep code" inside it.
    Think about the number of machine movements and probe-comp direction changes that MUST be changed when you hover-mouse and click to toggle the type of autocircle from IN to OUT, the deep code handles that for you. That one cell is not a few digits of text, it is much more powerful.

    What you CAN do, however, is:
    1) copy-and-paste between open programs, as long as you keep alignment names identical.

    2) copy-and-paste VB script code from teh itardwebz into Notepad and have PC-DMIS run it as a Basic Script (welcome to the code section!).
  • I have written some extremely basic codes but as I am new to this I really don't even know how to make the macros for the codes and get them into the program. Is there a script editor or a way to write a complete code and get it into the program or do I just use the assignment function?
  • You create a script that creates (adds) whatever commands you want to create in your program. Then you add that script to an icon on your toolbar. When that icon is clicked, it runs the script that generates the commands and inserts them into your partprogram.

    I will say it again, if you have created a partprogram with the commands you need/want, export it as BASIC and open the exported file in Notepad and you will see the generation of the commands that exists in your partprogram - but in BASIC flavour = if you execute the exported BAS file, it should create an identical partprogram to the one you exported (as BASIC).

    Wonderful feature when it comes to create specific commands via scripting.
  • Scavenging part programs for commands in note pad once you have opened the .bas is the key? What is teh itardwebz ?
  • Couldn't there be a site that contains text boxes made in the same format as pc-dmis program edit page that individuals could past code that would then be copied and pasted into ones pc-dmis part programs?
  • Or couldn't one say email a file with .bas files in it with all the commands in it that one could then import into a pc-dmis program file?
  • What is teh itardwebz ?

    You are using it to discuss what is the itardwebz.