Jump to content

Recommended Posts

Posted

A co-worker has drawings with notes done in notepad. Easy enough to edit the notes, but how does one create these notes/text in notepad. I'm sure this is a simple one. I typed in notepad at the command line and it says unknown command. Using 2009LT.

Glenn

USA

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • gsksun4

    11

  • alanjt

    5

  • JamyB

    4

  • eldon

    1

Top Posters In This Topic

Posted Images

Posted

Assuming LT has Start, add the following to your acad.pgp file.

NOTEPAD,   START NOTEPAD,  1,*File to edit: ,

Posted

It should already be setup in your ACAD.pgp file.

If not, go -TOOLS -> CUSTOMIZE -> Edit Program Parameter

 

Scroll down to 'Examples of external commands for Windows' and add to the list :

NOTEPAD, START NOTEPAD, 1,,

 

Then save a quit. In Autocad type 'REINIT', select PGP file, click Ok.

 

Then type NOTEPAD and let me know if this works.

Posted
It should already be setup in your ACAD.pgp file.

If not, go -TOOLS -> CUSTOMIZE -> Edit Program Parameter

 

Scroll down to 'Examples of external commands for Windows' and add to the list :

NOTEPAD, START NOTEPAD, 1,,

 

Then save a quit. In Autocad type 'REINIT', select PGP file, click Ok.

 

Then type NOTEPAD and let me know if this works.

 

You lost me at save a quit.

 

Also, no "Examples of external commands for Windows" list.

 

There is the list of command aliases. Two columns.

 

Ex:

3P, *3DPOLY

A, *ARC

AA, *AREA

AC, *BACTION

AD, *ATTDISP

AECTOACAD, *-ExportToAutoCAD

AE, *ATTEDIT

AR, *ARRAY

 

I'm sure you already know this.

Posted
Assuming LT has Start, add the following to your acad.pgp file.

NOTEPAD,   START NOTEPAD,  1,*File to edit: ,

 

The command aliases in the PGP file have two coulmns. Not sure how your above would be added there. See my above post please.

Posted
does the command REINIT work?

I haven't changed anything yet, that list you mentioned doesn't show in thet PGP scroll down window.

Yes, I type in REINIT and the reinitialization window shows up.

Posted

eg.

 

; 
;
;  Program Parameters File For AutoCAD 2008
;  External Command and Command Alias Definitions

;  Copyright (C) 1997-2007 by Autodesk, Inc.  All Rights Reserved.

;  Each time you open a new or existing drawing, AutoCAD searches 
;  the support path and reads the first acad.pgp file that it finds.

;  -- External Commands --
;  While AutoCAD is running, you can invoke other programs or utilities
;  such Windows system commands, utilities, and applications.
;  You define external commands by specifying a command name to be used
;  from the AutoCAD command prompt and an executable command string 
;  that is passed to the operating system. 

;  -- Command Aliases --
;  The Command Aliases section of this file provides default settings for
;  AutoCAD command shortcuts.  Note: It is not recommended that  you directly
;  modify this section of the PGP file., as any changes you make to this section of the 
;  file will not migrate successfully if you upgrade your AutoCAD to a
;  newer version.  Instead, make changes to the new 
;  User Defined Command Aliases
;  section towards the end of this file.

;  -- User Defined Command Aliases --
;  You can abbreviate frequently used AutoCAD commands by defining 
;  aliases for them in the User Defined Command Aliases section of acad.pgp.
;  You can create a command alias for any AutoCAD command,
;  device driver command, or external command.

;  Recommendation: back up this file before editing it.  To ensure that
;  any changes you make to PGP settings can successfully be migrated
;  when you upgrade to the next version of AutoCAD, it is suggested that
;  you make any changes to the default settings in the User Defined Command 
;  Aliases section at the end of this file.

;  External command format:
;  <Command name>,[<Shell request>],<Bit flag>,
[*]<Prompt>,

;  The bits of the bit flag have the following meanings:
;  Bit 1: if set, don't wait for the application to finish
;  Bit 2: if set, run the application minimized
;  Bit 4: if set, run the application "hidden"
;  Bit 8: if set, put the argument string in quotes
;
;  Fill the "bit flag" field with the sum of the desired bits.
;  Bits 2 and 4 are mutually exclusive; if both are specified, only 
;  the 2 bit is used. The most useful values are likely to be 0 
;  (start the application and wait for it to finish), 1 (start the 
;  application and don't wait), 3 (minimize and don't wait), and 5 
;  (hide and don't wait). Values of 2 and 4 should normally be avoided, 
;  as they make AutoCAD unavailable until the application has completed.
;
;  Bit 8 allows commands like DEL to work properly with filenames that 
;  have spaces such as "long filename.dwg".  Note that this will interfere 
;  with passing space delimited lists of file names to these same commands.
;  If you prefer multiplefile support to using long file names, turn off 
;  the "8" bit in those commands.

;  Examples of external commands for command windows

DEL,       DEL,            8,File to delete: ,
DIR,       DIR,            8,File specification: ,
SH,        ,               1,*OS Command: ,
SHELL,     ,               1,*OS Command: ,
START,     START,          1,*Application to start: ,
TYPE,      TYPE,           8,File to list: ,

; Examples of external commands for Windows
; See also the (STARTAPP) AutoLISP function for an alternative method.

EXPLORER,  START EXPLORER, 1,,
[color=Red]NOTEPAD,   START NOTEPAD,  1,*File to edit: ,[/color]
PBRUSH,    START PBRUSH,   1,,


; Command alias format:
;   <Alias>,*<Full command name>

;  The following are guidelines for creating new command aliases.
;  1. An alias should reduce a command by at least two characters. 
;      Commands with a control key equivalent, status bar button, 
;      or function key do not require a command alias. 
;      Examples: Control N, O, P, and S for New, Open, Print, Save.
;  2. Try the first character of the command, then try the first two, 
;      then the first three.
;  3. Once an alias is defined, add suffixes for related aliases: 
;      Examples: R for Redraw, RA for Redrawall, L for Line, LT for 
;      Linetype.
;  4. Use a hyphen to differentiate between command line and dialog 
;      box commands.
;      Example: B for Block, -B for -Block.
;
; Exceptions to the rules include AA for Area, T for Mtext, X for Explode.

;  -- Sample aliases for AutoCAD commands --                   
;  These examples include most frequently used commands.  NOTE: It is recommended 
;  that you not make any changes to this section of the PGP file to ensure the 
;  proper migration of your customizations when you upgrade to the next version of 
;  AutoCAD.  The aliases listed in this section are repeated in the User Custom
;  Settings section at the end of this file, which can safely be edited while
;  ensuring your changes will successfully migrate.



3A,        *3DARRAY
3DMIRROR,  *MIRROR3D
3DNavigate,*3DWALK
3DO,       *3DORBIT
3DW,       *3DWALK

 

It doesn't really matter, as long as they are in with the group.

Posted

Check the attached picture.

If you dont find it, try typing that section of the file.

Untitled-1.jpg

Posted
eg.

 

; 
;
;  Program Parameters File For AutoCAD 2008
;  External Command and Command Alias Definitions

;  Copyright (C) 1997-2007 by Autodesk, Inc.  All Rights Reserved.

;  Each time you open a new or existing drawing, AutoCAD searches 
;  the support path and reads the first acad.pgp file that it finds.

;  -- External Commands --
;  While AutoCAD is running, you can invoke other programs or utilities
;  such Windows system commands, utilities, and applications.
;  You define external commands by specifying a command name to be used
;  from the AutoCAD command prompt and an executable command string 
;  that is passed to the operating system. 

;  -- Command Aliases --
;  The Command Aliases section of this file provides default settings for
;  AutoCAD command shortcuts.  Note: It is not recommended that  you directly
;  modify this section of the PGP file., as any changes you make to this section of the 
;  file will not migrate successfully if you upgrade your AutoCAD to a
;  newer version.  Instead, make changes to the new 
;  User Defined Command Aliases
;  section towards the end of this file.

;  -- User Defined Command Aliases --
;  You can abbreviate frequently used AutoCAD commands by defining 
;  aliases for them in the User Defined Command Aliases section of acad.pgp.
;  You can create a command alias for any AutoCAD command,
;  device driver command, or external command.

;  Recommendation: back up this file before editing it.  To ensure that
;  any changes you make to PGP settings can successfully be migrated
;  when you upgrade to the next version of AutoCAD, it is suggested that
;  you make any changes to the default settings in the User Defined Command 
;  Aliases section at the end of this file.

;  External command format:
;  <Command name>,[<Shell request>],<Bit flag>,
[*]<Prompt>,

;  The bits of the bit flag have the following meanings:
;  Bit 1: if set, don't wait for the application to finish
;  Bit 2: if set, run the application minimized
;  Bit 4: if set, run the application "hidden"
;  Bit 8: if set, put the argument string in quotes
;
;  Fill the "bit flag" field with the sum of the desired bits.
;  Bits 2 and 4 are mutually exclusive; if both are specified, only 
;  the 2 bit is used. The most useful values are likely to be 0 
;  (start the application and wait for it to finish), 1 (start the 
;  application and don't wait), 3 (minimize and don't wait), and 5 
;  (hide and don't wait). Values of 2 and 4 should normally be avoided, 
;  as they make AutoCAD unavailable until the application has completed.
;
;  Bit 8 allows commands like DEL to work properly with filenames that 
;  have spaces such as "long filename.dwg".  Note that this will interfere 
;  with passing space delimited lists of file names to these same commands.
;  If you prefer multiplefile support to using long file names, turn off 
;  the "8" bit in those commands.

;  Examples of external commands for command windows

DEL,       DEL,            8,File to delete: ,
DIR,       DIR,            8,File specification: ,
SH,        ,               1,*OS Command: ,
SHELL,     ,               1,*OS Command: ,
START,     START,          1,*Application to start: ,
TYPE,      TYPE,           8,File to list: ,

; Examples of external commands for Windows
; See also the (STARTAPP) AutoLISP function for an alternative method.

EXPLORER,  START EXPLORER, 1,,
[color=red]NOTEPAD,   START NOTEPAD,  1,*File to edit: ,[/color]
PBRUSH,    START PBRUSH,   1,,


; Command alias format:
;   <Alias>,*<Full command name>

;  The following are guidelines for creating new command aliases.
;  1. An alias should reduce a command by at least two characters. 
;      Commands with a control key equivalent, status bar button, 
;      or function key do not require a command alias. 
;      Examples: Control N, O, P, and S for New, Open, Print, Save.
;  2. Try the first character of the command, then try the first two, 
;      then the first three.
;  3. Once an alias is defined, add suffixes for related aliases: 
;      Examples: R for Redraw, RA for Redrawall, L for Line, LT for 
;      Linetype.
;  4. Use a hyphen to differentiate between command line and dialog 
;      box commands.
;      Example: B for Block, -B for -Block.
;
; Exceptions to the rules include AA for Area, T for Mtext, X for Explode.

;  -- Sample aliases for AutoCAD commands --                   
;  These examples include most frequently used commands.  NOTE: It is recommended 
;  that you not make any changes to this section of the PGP file to ensure the 
;  proper migration of your customizations when you upgrade to the next version of 
;  AutoCAD.  The aliases listed in this section are repeated in the User Custom
;  Settings section at the end of this file, which can safely be edited while
;  ensuring your changes will successfully migrate.



3A,        *3DARRAY
3DMIRROR,  *MIRROR3D
3DNavigate,*3DWALK
3DO,       *3DORBIT
3DW,       *3DWALK

 

It doesn't really matter, as long as they are in with the group.

 

That section you say add to doesn't exist in my PGP file.

 

I did add it to the bottom of the command aliases. Now when I type in at the command line notepad, it says "File to Edit:" Am I where I should be? If I hit enter, the Notepad screen comes up. I type in test for the heck of it, try to X out to save it, then it asks me do I want to save, and I get a "Save As" window, like I'm trying to save a file under a different name. It's not doing anything to the drawing, like adding in my text.

Posted
Check the attached picture.

If you dont find it, try typing that section of the file.

 

Thanks, please read my response to alanjt. I have the notepad come up now, but it doesn't add text to the drawing. Maybe LT doesn't have the ability.

Posted
Check the attached picture.

If you dont find it, try typing that section of the file.

 

OK, I just added that whole section in and did reinit. Same thing, doesn't add text I put in notepad to the drawing.

Posted

It sounds to me as if Notepad is an external command, so does nothing within the drawing.

 

Perhaps your co-worker writes the notes in Notepad, then inserts the text file into Mtext??? Have you watched exactly how they do it :o

Posted
It sounds to me as if Notepad is an external command, so does nothing within the drawing.

 

Perhaps your co-worker writes the notes in Notepad, then inserts the text file into Mtext??? Have you watched exactly how they do it :o

 

No I have not. He's actually in another building. I called him and asked how he does it, but he's non-responsive and doesn't want to be bothered. Strange guy. I edit his stuff from time to time and with his existing drawings I just type in TE and click on the text and notepad appears for the edit. That's fine, I was just curious as to how to create my own in a new drawing. He's also using full blown 2000i. I'm using 2009LT.

Posted
Does LT have RText?

 

Unknown command. LT lacks many of the perks, but is sufficient for my needs. The notepad thing is just curiousity. Actually, I can do pretty much do everything in MTEXT, that's done in notepad. Maybe this is futile.

Posted

Your co-worker just has Notepad setup as his text editor, instead of the Mtext editor. I really don't know why you would want to do that, but, to each his own.

 

I don't know if this works in LT, but try typing MTEXTED at the command line and then type NOTEPAD. This will allow you to create your text in Notepad instead of the Mtext editor.

 

Example:

 

Command: MTEXTED

Enter new value for MTEXTED, or . for none : NOTEPAD

 

To switch back to the Mtext editor, repeat the above procedure, but type INTERNAL instead of NOTEPAD.

Posted

Doesn't work. It's got to be a LT thing. You're completely rightCad64. I'm sticking with MTEXT.

 

Thanks again to all.

Glenn

Posted
Your co-worker just has Notepad setup as his text editor, instead of the Mtext editor. I really don't know why you would want to do that, but, to each his own.

 

I don't know if this works in LT, but try typing MTEXTED at the command line and then type NOTEPAD. This will allow you to create your text in Notepad instead of the Mtext editor.

 

Example:

 

Command: MTEXTED

Enter new value for MTEXTED, or . for none : NOTEPAD

 

To switch back to the Mtext editor, repeat the above procedure, but type INTERNAL instead of NOTEPAD.

Ah hah! That's what I was trying to think about.

 

Doesn't work. It's got to be a LT thing. You're completely rightCad64. I'm sticking with MTEXT.

MTEXTED
Enter new value for MTEXTED, or . for none <"internal">: internal

Posted

The Mtexted worked for me. I guess it one of those many things that doesn't work with LT.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...