Author Topic: Is there an easy way to assign alias through .net?  (Read 1934 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Is there an easy way to assign alias through .net?
« on: August 07, 2015, 02:10:14 AM »
Possible to assign alias to several commands in one method or do I need to create one for every alias I want to assign.

Basically I want to change the rotate command to "RT", the EditLabelText command to "elt", etc but would be easier to manage if I could control it all under one method, rather than multiple ones. Hope that makes sense (not sure about the jargon)

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Is there an easy way to assign alias through .net?
« Reply #1 on: August 07, 2015, 10:20:51 AM »
Any reason why you don't just change the PGP file?  That's like using a door handle instead of a wrecking ball.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Is there an easy way to assign alias through .net?
« Reply #2 on: August 07, 2015, 04:04:39 PM »
Any reason why you don't just change the PGP file?  That's like using a door handle instead of a wrecking ball.

Allows others who use my cpu to run it normally but when I load my stuff, the aliases come in.

BlackBox

  • King Gator
  • Posts: 3770
Re: Is there an easy way to assign alias through .net?
« Reply #3 on: August 07, 2015, 06:26:19 PM »
I still do not understand why you'd need to change the PGP file at all.

If others are using your machine, they should be logging into it using their domain credentials.

If the ability to change machines at-will is important, even if only in the event of a disaster so that each employees settings remain consistent, the profile should be loaded/updated from common network location, and individual custom settings should be stored to each user's personal network space and mapped accordingly.

This way, any user can log into any machine - be it for a project meeting in the conference room, or following a disk failure / machine replacement - and have their settings applied.

"How we think determines what we do, and what we do determines what we get."

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Is there an easy way to assign alias through .net?
« Reply #4 on: August 08, 2015, 04:10:12 AM »
There's a few other reasons I'd like to...if I were as stationary as your descriptions it would work. I suppose it has to do with me moving around, more than the GF using my machine for her work also. This would allow the alias to load anywhere I am.  More of a convenience.

Thanks for trying though.
« Last Edit: August 08, 2015, 04:35:56 AM by Alien »

Chumplybum

  • Newt
  • Posts: 97
Re: Is there an easy way to assign alias through .net?
« Reply #5 on: August 09, 2015, 06:52:00 PM »
I try and leave CAD alone as much as possible. Instead of modifying the .pgp file I use a .lsp file with all my 'redefined' commands that gets loaded with my cui

eg:
(defun C:C ()
  (setvar "cmdecho" 0)
  (prompt "COPY\n")
  (command "_.COPY")
  (setvar "cmdecho" 1)
  (princ)
)
(defun C:CI ()
  (setvar "cmdecho" 0)
  (prompt "CIRCLE\n")
  (command "_.CIRCLE")
  (setvar "cmdecho" 1)
  (princ)
)
(defun C:DW ()
  (setvar "cmdecho" 0)
  (prompt "DRAWORDER\n")
  (command "_.DRAWORDER")
  (setvar "cmdecho" 1)
  (princ)
)
(defun C:LN ()
  (setvar "cmdecho" 0)
  (prompt "LENGTHEN\n")
  (command "_.LENGTHEN")
  (setvar "cmdecho" 1)
  (princ)
)

... its not .net though  :-D