Search:

Type: Posts; User: tombu

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    370

    Glad you found a solution, but Lee's link...

    Glad you found a solution, but Lee's link explains the quote function as well as any I've seen. Do you understand now that the difference between using quote -vs- the list and cons functions is that...
  2. Replies
    4
    Views
    187

    Like ymg3 I'd use something like (foreach...

    Like ymg3 I'd use something like
    (foreach layout (layoutlist)) or
    (foreach layout retlist2) to replace all the code you posted.
  3. The backslash allows special characters including...

    The backslash allows special characters including itself used in strings to simply be string characters. When writing lisp for a field \" puts " as a character in a string and \\ puts \.
    Ex: ...
  4. Replies
    4
    Views
    164

    No, not possible.

    No, not possible.
  5. I think he's got it:...

    I think he's got it: http://forums.augi.com/showthread.php?161739-Lisp-to-trim-break-a-polyline-or-line
  6. Haven't tried it, but this may be what you need:...

    Haven't tried it, but this may be what you need:

    JTB Current Folder for AutoCAD
    Every time you want to open a drawing, or attach external references, insert drawing as block or want to create a...
  7. Replies
    19
    Views
    780

    The qui or quick option for the osnap command is...

    The qui or quick option for the osnap command is described in 2015 Help, but not 2016 Help. Guess they finally dropped it, never saw a use for it anyway.
  8. Replies
    19
    Views
    780

    It worked for a line in 2015. LWPOLYLINE's were...

    It worked for a line in 2015. LWPOLYLINE's were introduced in r14 back in 1997. Since they weren't addressed in the code and the "R" Snap option hasn't been listed in help since about that time the...
  9. Thread: acad.pgp

    by tombu
    Replies
    2
    Views
    237

    Couple examples: My Documents Folder: ...

    Couple examples:
    My Documents Folder:

    ^C^C^P(progn(startapp "explorer" (strcat "/n,/e," (getvar "mydocumentsprefix")))(princ))
    Open Windows Explorer in Roamable Support Folder:
    ...
  10. You could use it in a macro to open the recent...

    You could use it in a macro to open the recent directory from within AutoCAD:

    ^C^C^P(progn(startapp "explorer" (strcat "/n,/e," (getvar "dwgprefix")))(princ))
  11. Replies
    19
    Views
    780

    His original code stored the osmode and snapmode...

    His original code stored the osmode and snapmode values to reset them at the end of the code. Oddly the code never modified either one so I removed them from the modified version I posted. I don't...
  12. Replies
    19
    Views
    780

    Try this: (defun C:ROSNAP (/ tll tlle pt1 pt2...

    Try this:
    (defun C:ROSNAP (/ tll tlle pt1 pt2 pt3)
    (graphscr)
    (setq tll (entsel "Select Object: "))
    (if tll (setq tlle (car tll) pt2 nil pt1 (cadr tll) nme (cdr (assoc 0 (entget tlle)))))...
  13. Replies
    15
    Views
    538

    If your doors & windows were blocks with...

    If your doors & windows were blocks with attributes this would be a snap. You don't actually draw each of these one at a time do you?
  14. Replies
    19
    Views
    780

    While the "R" option works in 2015 it's no longer...

    While the "R" option works in 2015 it's no longer listed as an option. I haven't installed 2016 yet, have you tried at the command line to see if "Snap R " works in 2016?
  15. Replies
    19
    Views
    780

    Command-s should work, good read:...

    Command-s should work, good read: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlisp-what-to-do-with-command-s/td-p/5058168?nobounce
    What kind of error or output did you have with...
  16. I use width for pavement striping and lineweights...

    I use width for pavement striping and lineweights for everything else. Button on the status bar toggles the lineweight display off/on.
  17. As a licensed surveyor (started in 1975)...

    As a licensed surveyor (started in 1975) currently using Civil 3D standard pratice is blocks with annotation for monuments or calculated points at corners. What type of software are you using to do...
  18. Replies
    13
    Views
    491

    You could use (command "c:fastsel") or just...

    You could use (command "c:fastsel") or just (fastsel), but BlackBox's lisp solution is spot on.
  19. Replies
    13
    Views
    491

    No code needed the Express Tool Fastsel already...

    No code needed the Express Tool Fastsel already does that.
  20. Replies
    3
    Views
    233

    Assuming you trust it why not just put setpaths...

    Assuming you trust it why not just put setpaths code in a trusted folder? Malicious Code is out there, disabling the added protection AutoCAD provides doesn't make any sense.
Results 1 to 20 of 76
Page 1 of 4 1 2 3 4