Author Topic: Overwrite then Restore  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

hobleglobsquishyworms

  • Swamp Rat
  • Posts: 779
  • .net stuff
Overwrite then Restore
« on: July 12, 2019, 11:34:04 PM »
Anyone know what files are all part of a users configurations?   I'll be overwriting their acad.cui and setting a bunch of variables with lisp but need to be able to restore their settings at any time.

dgorsman

  • Water Moccasin
  • Posts: 2394
Re: Overwrite then Restore
« Reply #1 on: July 15, 2019, 04:29:48 AM »
Define "user configuration"?  I would recommend leaving the ACAD.CUIx file alone.  Possibly the full treatment of placing it in a common network location and make it partial to a custom Enterprise CUIx.  Use a per-user custom Main for storing the workspace.

Fastest (but not necessarily best) way of restoring everything is to delete a non-active profile and reload from an ARG file.  That changes nearly everything but all at once (no pick and choose), and does nothing about the workspace unless the Main and/or Enterprise are changed.
If you are going to fly by the seat of your pants, expect friction burns.

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

hobleglobsquishyworms

  • Swamp Rat
  • Posts: 779
  • .net stuff
Re: Overwrite then Restore
« Reply #2 on: July 18, 2019, 08:13:21 PM »
Main issue is that one setup will change dozens of variables.  The user needs a way to get back to their own variables.