TheSwamp

CAD Forums => CAD General => Topic started by: MSTG007 on June 09, 2017, 02:14:37 PM

Title: Interesting Autocad Article - CAD Performance
Post by: MSTG007 on June 09, 2017, 02:14:37 PM
I stumbled onto this site. What are your thoughts on this article? Do you think they make a difference by changing some of these variables?

http://www.thesourcecad.com/improve-autocad-performance/ (http://www.thesourcecad.com/improve-autocad-performance/)
Title: Re: Interesting Autocad Article - CAD Performance
Post by: huiz on June 10, 2017, 01:43:00 AM

Not all of these have a dramatic effect but it absolutely helps to set the variables carefully.
In my startup lisp I set a lot of variables to the best setting.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: MSTG007 on June 12, 2017, 07:24:51 AM
Could I ask what other variables that you do change?
Title: Re: Interesting Autocad Article - CAD Performance
Post by: dgorsman on June 12, 2017, 10:15:00 AM
Some of them appear to be irrelevant, at least for the last version or two.  It's important to re-evaluate every so often rather than just carrying things forward.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: Jeff H on June 12, 2017, 12:45:34 PM
From Article
Quote
LAYOUTREGENCTL

Changing this variable can improve the performance of AutoCAD by modifying the way drawing view is regenerated on changing tabs. The default value of LAYOUTREGENCTL system variable is 2 but you can change it to 0 or 1 as well to improve its performance.

0 – The drawing is regenerated each time you switch tabs. (Maximum Performance)

1 – For the Model tab and the last layout made current, the display list is saved to memory and regenerations are suppressed when you switch between the two tabs. For all other layouts, regenerations still occur when you switch to those tabs.

2 – The drawing is regenerated the first time you switch to each tab. For the remainder of the drawing session, the display list is saved to memory and regenerations are suppressed when you switch to those tabs.
Is that correct 0 for max performance?
Title: Re: Interesting Autocad Article - CAD Performance
Post by: huiz on June 13, 2017, 08:27:07 AM
Could I ask what other variables that you do change?

You can. But my settings are not your settings :-)

I always set INSUNITS, INSUNITSDEFSOURCE and INSUNITSDEFTARGET to meters. For selection settings like the gripsize and aperture size I use my favorite size. I don't like the default small aperture. Also for selecting objects I set the RIBBONSELECTMODE en PICKFIRST to 1. The popup in the Command Line showing the available commands pops up to soon, so I set the INPUTSEARCHDELAY to 2000 or higher. Also I turn the COMMANDPREVIEW and PROPERTYPREVIEW off.

And so there are a few hundred variables I set automatically. But these are the best settings for me only.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: huiz on June 13, 2017, 08:28:08 AM
From Article

[..]

Is that correct 0 for max performance?

For me 2 is the best value.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: MSTG007 on June 13, 2017, 08:40:39 AM
Nice... Thank you for sharing!
Title: Re: Interesting Autocad Article - CAD Performance
Post by: ronjonp on June 13, 2017, 10:04:05 AM
From Article
Quote
LAYOUTREGENCTL

Changing this variable can improve the performance of AutoCAD by modifying the way drawing view is regenerated on changing tabs. The default value of LAYOUTREGENCTL system variable is 2 but you can change it to 0 or 1 as well to improve its performance.

0 – The drawing is regenerated each time you switch tabs. (Maximum Performance)

1 – For the Model tab and the last layout made current, the display list is saved to memory and regenerations are suppressed when you switch between the two tabs. For all other layouts, regenerations still occur when you switch to those tabs.

2 – The drawing is regenerated the first time you switch to each tab. For the remainder of the drawing session, the display list is saved to memory and regenerations are suppressed when you switch to those tabs.
Is that correct 0 for max performance?
I think way back when computers did not have much RAM, 0 was a good setting. I used to have some projects with many tabs ( 30 - 50 ) and the computer would run out of memory ( when set to 2 ) before it could cycle through all of them when plotting.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: ronjonp on June 13, 2017, 10:08:05 AM
Nice... Thank you for sharing!
One variable I like to set is (setenv "ShowFullPathInTitle" "1") .. not for performance, but being able to see the full path of the file at the top of the AutoCAD window.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: ronjonp on June 13, 2017, 10:22:18 AM
And here's a list of variables I set ... please review them before using them as I've not looked at this in about 8 years. Half of them probably don't apply anymore LOL.
Code - Auto/Visual Lisp: [Select]
  1. (defun _setvars (/ ds lst)
  2.   (and (zerop (setq ds (getvar 'dimscale))) (setq ds 1))
  3.   (setq lst '(("ShowFullPathInTitle" . "1")
  4.               (acadlspasdoc . 1)
  5.               (angdir . 0)
  6.               (apbox . 1)
  7.               (aperture . 8)
  8.               (attdia . 1)
  9.               (attmode . 1)
  10.               (auditctl . 0)
  11.               (aunits . 0)
  12.               (backgroundplot . 0)
  13.               (bindtype . 1)
  14.               (blipmode . 0)
  15.               (cecolor . "bylayer")
  16.               (celtscale . 1)
  17.               (celtype . "bylayer")
  18.               (cmddia . 1)
  19.               (coords . 2)
  20.               (cursorsize . 100)
  21.               (dblclkedit . 1)
  22.               (delobj . 1)
  23.               (demandload . 2)
  24.               (dimassoc . 2)
  25.               (dragmode . 2)
  26.               (dragp1 . 10)
  27.               (dragp2 . 10)
  28.               (draworderctl . 3)
  29.               (dwgcheck . 2)
  30.               (dynpicoords . 1)
  31.               (edgemode . 1)
  32.               (elevation . 0)
  33.               (entexts . 0)
  34.               (expert . 1)
  35.               (explmode . 1)
  36.               (facetratio . 1)
  37.               (facetres . 10)
  38.               (fielddisplay . 1)
  39.               (fieldeval . 31)
  40.               (filedia . 1)
  41.               (filletrad . 0)
  42.               (fillmode . 1)
  43.               (fontalt . "romans.shx")
  44.               (gripblock . 0)
  45.               (gripobjlimit . 30000)
  46.               (grips . 1)
  47.               (groupdisplaymode . 0)
  48.               (hideprecision . 0)
  49.               (highlight . 1)
  50.               (hpassoc . 1)
  51.               (hpbound . 1)
  52.               (hpdraworder . 3)
  53.               (hpgaptol . 1)
  54.               (hpname . "solid")
  55.               (hpscale . ds)
  56.               (hpseparate . 1)
  57.               (imagehlt . 0)
  58.               (indexctl . 0)
  59.               (insunits . 0)
  60.               (isavebak . 0)
  61.               (isavepercent . 0)
  62.               (isolines . 25)
  63.               (layereval . 0)
  64.               (layerfilteralert . 1)
  65.               (layoutregenctl . 2)
  66.               (logfilemode . 0)
  67.               (luprec . 6)
  68.               (lwdisplay . 0)
  69.               (maxsort . 32767)
  70.               (mbuttonpan . 1)
  71.               (menubar . 1)
  72.               (mirrtext . 0)
  73.               (mleaderscale . ds)
  74.               (mtextfixed . 2)
  75.               (oleframe . 2)
  76.               (olehide . 0)
  77.               (olequality . 3)
  78.               (olestartup . 1)
  79.               (openpartial . 0)
  80.               (osnaphatch . 0)
  81.               (osnapz . 1)
  82.               (paperupdate . 1)
  83.               (peditaccept . 1)
  84.               (pellipse . 0)
  85.               (pickadd . 1)
  86.               (pickauto . 5)
  87.               (pickdrag . 2)
  88.               (pickfirst . 1)
  89.               (pickstyle . 1)
  90.               (plinegen . 1)
  91.               (plinetype . 2)
  92.               (plotoffset . 1)
  93.               (previeweffect . 0)
  94.               (previewfilter . 63)
  95.               (proxynotice . 0)
  96.               (proxyshow . 0)
  97.               (proxywebsearch . 0)
  98.               (pstylemode . 1)
  99.               (pstylepolicy . 1)
  100.               (publishallsheets . 1)
  101.               (rasterpreview . 1)
  102.               (recoverymode . 0)
  103.               (regenmode . 1)
  104.               (rememberfolders . 1)
  105.               (reporterror . 0)
  106.               (rollovertips . 0)
  107.               (rtdisplay . 1)
  108.               (savefidelity . 0)
  109.               (savetime . 8)
  110.               (secureload . 0)
  111.               (selectionarea . 1)
  112.               (showlayerusage . 0)
  113.               (sigwarn . 0)
  114.               (sortents . 51)
  115.               (sslocate . 1)
  116.               (ssmautoopen . 1)
  117.               (ssmstate . 0)
  118.               (standardsviolation . 0)
  119.               (startup . 3)
  120.               (textfill . 1)
  121.               (textqlty . 100)
  122.               (textsize . (* ds 0.1))
  123.               (textstyle . "romans")
  124.               (thickness . 0)
  125.               (thumbsize . 8)
  126.               (ucsdetect . 0)
  127.               (ucsfollow . 0)
  128.               (vtduration . 250)
  129.               (vtenable . 0)
  130.               (whiparc . 0)
  131.               (whipthread . 1)
  132.               (xfadectl . 75)
  133.               (xloadctl . 2)
  134.               (xreftype . 1)
  135.               (zoomfactor . 100)
  136.              )
  137.   )
  138.   (foreach x lst (vl-catch-all-apply 'setvar (list (car x) (eval (cdr x)))))
  139.   (princ)
  140. )
Title: Re: Interesting Autocad Article - CAD Performance
Post by: MSTG007 on June 13, 2017, 11:17:32 AM
I gotta ask.... How many of you still use the menubar? or know what a menubar is.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: ronjonp on June 13, 2017, 11:27:33 AM
I gotta ask.... How many of you still use the menubar? or know what a menubar is.
I only have it for some tools that don't have a place on the ribbon ... I'm still using an MNS file to automagically convert to CUI.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: dgorsman on June 13, 2017, 01:20:06 PM
I still include the conventional "File" "Edit" "Window" "Help" menus.  There's a few things which are convenient there, and users are expecting.
Title: Re: Interesting Autocad Article - CAD Performance
Post by: Bryco on July 25, 2023, 02:48:45 PM
I set a lot of vars. I also keep a record of the ones that come as a horrible surprise w/ new acad versions so I can remember how to turn them off.
          //ANNOMONITOR and set this variable to -1. to stop yellow alerts next to dims
            //COMMANDPREVIEW=0 toggles command preview
            //CURSORBADGE=1
            //Cullingobj=0  Use 1 to select hidden faces 3d
            //DIMTXTRULER=0 TURNS OFF the MtextRULER
            //fielddisplay=o No graybackground on fields
            //("filetabclose", 0); turns off dwgs/file tab  at top
            //Hpinherit=1 uses origin from hatch object 
            //Isaveback-creates a Bak file
            //lasso  options->selection->Allow press and Drag for lasso
            //("LAYLOCKFADECTL",15);  //fade for locked layers
            //Mirrhatch=1 allows mirroring of hatch
            //NEXTFIBERWORLD =0  FOR DEBUGGING
            //("QPMODE", 0); turns off quick properties
            //Rememberfolders=1 DEFAULT PATH FOR DIALOGUE BOXES IS LAST PATH
            //("SUBOBJSELECTIONMODE ",0) to turn off selection dialogue box
            //SELECTIONEFFECT and PRESELECTIONEFFECT both to 0 sets the selected objects to appear as dashed
            //Solidhist=1 saves history
            //Sysmon=0  System variables are not monitored.
            //startmode =0 turns off the start tab
            //SURFEXTRACTCURVE use to get  isolines
            //xedit=0 Prevents in-place reference editing
            //XREFOVERRIDE to 1 and xref objects will take on Bylayer behavior

        // HALF MOON NEXT TO CURSOR
        // when geometry is copied and selected to be moved, if you hold down shift the icon appears.
        //This is an indicator that the geometry can only be moved orthogonal to its present location.
        //if the icon is frustrating you: select some geometry, copy it and when you move it hold down the shift key.
        //Move the geometry and then delete it and the "Bug" should go away.

        //SELECTIONCYCLING
        //    2 OVERELAPPING RECTANGLES NEXT TO CURSOR   SET TO 0 OR -2 TO TURN OFF

        //FILETABPREVIEW : setting it to 0 prevents showing the 'thumbnails' when passing over the file tabs..

        //   FILETABTHUMBHOVER: controls what happens next, when you hover one of the thumbnails..
        ////SELECTIONEFFECT =0 for dashed lines when selecting
Title: Re: Interesting Autocad Article - CAD Performance
Post by: It's Alive! on July 29, 2023, 02:34:21 AM
in ARX, and .NET there's a AcEdSysVarIterator class where you can have access to all the system variables.
might be cool you write them out to a file to have a record of your settings