Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/02/2019 in all areas

  1. If you do not want it to reset osnaps then delete the following line from the code. (setvar "osmode" osnp) Here's the full program without the resetting of osnap and with the point added to the second vertex of the line. ; places a point at the end of lines (defun c:lstart(/) (command "_pdmode" "35" "") (setq osnp (getvar "osmode")) (setvar "osmode" 0) if (setq ss (ssget '((0 . "LINE")))) (progn (setq i 0) (while (setq en (ssname ss i)) (setq ed (entget en)) (setq pos (cdr (assoc 11 ed))) (command "point" pos "" ) (setq i (1+ i) ) ; end setq i ) ;end while ) ; end progn ) ;end if ;; (setvar "osmode" osnp) ;reset osnap (princ) )
    1 point
  2. The best way to achieve all of these is to alter your drawing template. This will be called acad.dwt for imperial and acadiso.dwt for metric. The default path to these templates can be found by typing _options on the command line then selecting the files tab in the dialog. Scroll down to find Template Settings and press the + to expand the option. "Drawing Template File Location" will tell you where it is stored "Default Template File Name for QNEW" will give you the file. Load the dwt template file, make the changes you require the saveas "AutoCAD Drawing Template (*dwt)" with the same file name to overwite the existing or save the file to your Documents Folder with the same name and then point the "Drawing Template File Location" to your amended template file. Once this is done, every time you start a new drawing your new drawing will reflect the changes made. The code below will work for textstyles. The equivalent dimstyle system variable cannot be altered like this as it is Read Only (RO). (setvar 'textstyle "Annotative")
    1 point
  3. In our AutoCAD days, we did it this way: 1. The main DWG file is always the "current revision". 2. When a revision is expected, we copy/paste the current file into another folder as an archive, in which we put a suffix on the end of the file name identifying the current revision. This way things keep flowing but we could always go back if need be. So the first time we have a revision, the current DWG file got copied and the suffix is "Original". Second revision, current DWG file got copied with a suffix "Revision 1". We just kept the main file current, copying as necessary for a record snapshot of the previous revision or phase. We felt that always worked out best for our company standards. -TZ
    1 point
×
×
  • Create New...