hexagon logo

How do I past code from a text file into a program?

The Purge with character limits
  • Personally, I've never done it that way but if you get that error, try copying and pasting smaller bits of the program.
  • When selecting code in a PC-DMIS (non-DMIS) program, you are not only selecting the code but also the functionality of the objects. Open both programs in PC-DMIS and copy from one program to the other. That should work.
  • As far as I know, there is no way to paste plain text directly into a PC-DMIS program. You can copy&paste text into the separate command fields (numbers, comment text etc.) one at a time, but not complete commands.

    On the other hand, there are a number of different formats PC-DMIS can import into a new program (plain DMIS, for example), and then you can copy&paste between the PC-DMIS programs.

  • If there are enough people that would see this ability as a benefit, we could add this as a "suggest feature" that PCDMIS has it's own built in clip board to store bunches of code that can be transferred.

    But you could always create a new program behind the one already open and paste it in that one to copy it in later on.
  • Just because the PC-DMIS code looks like plain text, when copied from a program and pasted into a text file, doesn't mean that it is. There is far more going on in the background that you can't see.

    Long story short, it is not possible to copy and paste sections of code from word/notepad/whatever into PC-DMIS.

    The simplest way to see this is to start typing on a new line in PC-DMIS. What happens? It starts to auto-grab code for you, but only in discrete bits. As you type "MOVE" for instance, if you wanted a move/ point, you can't type any farther. You have to tab. Why? Because it's not just a line of text.
  • [FONT=Calibri]GOTO/DEATH[/FONT]


    Love that labelname though! Sunglasses
  • Aside from it not being possible from a "mechanics" viewpoint (at the very least, think about this - SHOWHITS=NO - how would you copy the hits?), think of it from a money grubbing viewpoint. If I could use Notepad to write programs, why would I buy an offline seat?

    This is the trade-off you get with a live editor. If the software were resident in something like VB, though, you could do it.
  • There are other S/W's out there that are simply text and you can write a program in Notepad (for example) if you can get all the details right (don't use a '.' when a ',' is appropriate). What seems like a weakness in PC-DMIS (inability to code at home using Notepad) is actually a strength --- BECAUSE there is so much going on behind the code, it makes for a much more user friendly experience. I mean, unless you are a masochist. We all need our hobbies, and I don't judge. Well, not out loud anyway.
  • Learn the nomenclature by generating every type of feature and then export to DMIS code. You could then learn how to program in notepad style and import to PC-DMIS language. You will lose out on CAD for reference. HTH