Jump to content

Recommended Posts

Posted

I made up this one or 2 upgrades ago:

 

(defun c:setupworkspace ( / MyWorkspace )
  ;;Get workspace name to edit menubars later
  (setq MyWorkspace (getvar "wscurrent") )

  ;;close ribbon
  (command "ribbonclose")

  ;;Show menubars / toolbar
  (setvar 'menubar 1)

  ;;menus
  (command "-toolbar" "draw" "s")
  (command "-toolbar" "draw order" "s")
  (command "-toolbar" "layers" "s")
  (command "-toolbar" "modify" "s")
  (command "-toolbar" "standard" "s")
  (command "-toolbar" "styles" "s")
  (command "-toolbar" "properties" "s")
  (command "properties")

  ;;ViewCube
  (command "DISPLAYVIEWCUBEIN2D" "Off")
  (command "DISPLAYVIEWCUBEIN3D" "On")

  ;;modelspace paper colour, RGB "255 255 255" = white "0 0 0" = black
    (defun somefunc (x y z)
      (apply '+ (mapcar 'lsh (list x y z) '(16 8 0)))
    )
  (setenv "Background" (itoa (somefunc 255 255 255)))

  ;;Go to model space
  (setvar "ctab" (nth 0 (layoutlist) ))
  (setvar "ctab" "Model" )

  ;;custom alerts to set up user things like papaer sizes
  (alert "Set up Ax Full Bleed to 0mm margins")
  (alert "Set up Ax Expand to 0mm margins")
  (alert "Set up 'DWG to PDF - No Preview.pc3'\nChange PDF Options")
  (alert "SP: See plotter configuration files folder, copy to AutoCAD folder")

)

 

  • Like 1

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...