Author Topic: plotting lisp  (Read 21739 times)

0 Members and 1 Guest are viewing this topic.

SMadsen

  • Guest
plotting lisp
« Reply #15 on: November 21, 2003, 09:23:00 AM »
You're welcome, Mr. Thomas.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #16 on: November 21, 2003, 09:25:08 AM »
Yes, thanks Mr Madson
Allways an education :)

CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JohnK

  • Administrator
  • Seagull
  • Posts: 10634
plotting lisp
« Reply #17 on: November 21, 2003, 10:32:33 AM »
HEY!!

Mark make me an admin!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ELOQUINTET

  • Guest
plotting lisp
« Reply #18 on: November 21, 2003, 11:27:51 AM »
we're not that foolish se7en  :lol:  :lol:  :lol:

dan

daron

  • Guest
plotting lisp
« Reply #19 on: November 21, 2003, 11:41:23 AM »
Hehehe.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #20 on: November 24, 2003, 04:03:00 PM »
I would like to expand the above routine.
So before I start changing the routine I was hoping for your thoughts.

1) the routine uses the last plot configuration. As I often plot to my HP1120C during review
and a "Plot to File" Plot Set Up for final sets, it would be a time saver to use a Plot Style
or perhaps even picking one at the start of the routine rather than hard coding a "Page Setup" name.
So the choice might be: Use last plot set up or Pick a Page Set up.


2) I often have paper space tabs that are working or preliminary that should not be included in the
Full Set version of the plot. I was thinking about prefixing those with * or ~ and test for that character
to prevent them from being included in the plot set.

 So before i charge down a dead end road let me hear your thoughts.:)

CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

daron

  • Guest
plotting lisp
« Reply #21 on: November 24, 2003, 04:32:23 PM »
CAB, I'm going to put something up on the swamp files for you to look at. They might not be exactly what you are looking for, but you might be able to gleen some info from them. I'll let you know when they are up.





They're up. Look under a folder with your name on it.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #22 on: November 24, 2003, 06:31:43 PM »
Great, I'm sure I'll learn something.

Every little step forward ya-know. :)

CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

ELOQUINTET

  • Guest
plotting lisp
« Reply #23 on: November 25, 2003, 09:04:01 AM »
hey cab sorry for the delayed response i've been extremely busy trying to knock out a few jobs before vacation. ummm as far as your message goes, i think it would be great to introduce those options but...

for me that would be great but i believe i'm the only one using page setups here at this time  :roll:  and i have to work on others drawings which don't use them. i think the sketch idea is a pretty good one as far as designating non plot layouts with an asterisk in front. i noticed this sort of problem on a job that i was just working on. i had a page setup for modelspace to print out things for me to look at to the small printer. well when i printed out the full set it printed my modelspace layout which i didn't need then. these all sound like good ideas to me let me know how it goes  :wink:

dan

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #24 on: November 25, 2003, 09:26:57 AM »
dan

actually thoses features were for me. :D

I usually have between 6 and 10 tabs in each main drawing, just depends on the house size / complexity.

So there are others of us here with needs and wants too. 8)


Here is the revised code and will not plot Model Space or tabs with ~ in the name.

Code: [Select]
;; plot all paper space tabs, ignore Model Space
;; ignore tabs with ~ in the name
(Defun C:PT
   (/ plo_layouts plo_cntr plo_list plo_layouttab)
  (vl-load-com)
  (setvar "FILEDIA" 0)
  (setvar "CMDDIA" 0)
  (initget 6) ; disallow 0 or <0
  (setq nofs (getint "Enter number of sets: <1>"))
  (setq nofs (if (or nofs (= nofs 0))
      nofs
      1
    )
  )
  (setq plo_layouts
(vla-get-layouts
  (vla-get-activedocument (vlax-get-acad-object))
)
  )
  (vlax-for plo_layout plo_layouts
    (setq plo_list (cons (vla-get-name plo_layout) plo_list))
  )
  ; make sure to plot tabs left to right in order
  (setq plo_list (if (= (car plo_list) "Model")
  plo_list
  (reverse plo_list)
)
  )
  (while (>= nofs 1)
    (setq plo_cntr 0)
    (repeat (length plo_list)
      (setq plo_layouttab (nth plo_cntr plo_list))
      (cond
((= plo_layouttab "Model")
nil ; skip Model Space
) ; end cond 1
((> (vl-string-search "~" plo_layouttab) 0)
nil ; skip if ~ in tab name
) ; end cond 2
(T
(command "-PLOT" "n" plo_layouttab "" "" "" "" "" "")
) ; end cond 3
      ) ; end cond
      (setq plo_cntr (1+ plo_cntr))
    )
    (prompt "\nPlot Set Complete")
    (setq nofs (1- nofs))
  )

  (setvar "FILEDIA" 1)
  (setvar "CMDDIA" 1)
  (princ)
)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

ELOQUINTET

  • Guest
plotting lisp
« Reply #25 on: November 25, 2003, 10:26:52 AM »
okie dokie i'll give it a go thanks

dan

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #26 on: December 05, 2003, 04:25:39 PM »
Daron,

You were going to upload some file to look at.

Just a reminder :)  Hint Hint

I had to plot a job yesterday with 14 tabs in the draiwing but could not use the routine above,
because I had previously plotted to my DJ1120C and needed to change the  plot style in each tab.

When you have time.

Thanks

CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

daron

  • Guest
plotting lisp
« Reply #27 on: December 08, 2003, 10:02:33 AM »
I thought you saw them. PM time.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
plotting lisp
« Reply #28 on: December 08, 2003, 10:54:25 AM »
Sorry, was looking in the Lilly pond :oops:

The file is VERY informative, Thanks

Was trying to get this to work. No Luck.
(lost in X land)  :)

Code: [Select]
(setq cfg (vlax-safearray->list
      (vlax-variant-value (vla-Get-PlotConfigurations LayoutObj))
    ))



CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

daron

  • Guest
plotting lisp
« Reply #29 on: December 08, 2003, 10:56:06 AM »
What is the value of layoutObj?