Dynamic Input after running LSP

Dynamic Input after running LSP

Anonymous
Not applicable
431 Views
4 Replies
Message 1 of 5

Dynamic Input after running LSP

Anonymous
Not applicable

I have made some simple lsp commands to make printing pdf, dwf and A3 a one click affair. For some reason though, after using one of the commands it will turn on dyanmic input (F12) and I have no idea why, what am I missing?

 

(defun c:PPDF(/)
 
;; make sure filename is ok before plotting
 
(if (setq filename (getfiled "enter actobat  file name" ""  "pdf" 1))
  (progn

(command "tilemode" "0")
(command "-plot" "y" "" "Dwg To PDF.pc3" "ISO full bleed A1 (841.00 x 594.00 MM)" "M"
"L" "N" "e" "1:1" "" "Y" "" "Y" "N" "N" "N"   filename "y" "Y") ))
(princ) )


(defun c:PDwF(/)
 
;; make sure filename is ok before plotting
 
(if (setq filename (getfiled "enter actobat  file name" ""  "dwf" 1))
  (progn

(command "tilemode" "0")
(command "-plot" "y" "" "DWF6 ePlot.pc3" "ISO full bleed A1 (841.00 x 594.00 MM)" "M"
"L" "N" "e" "1:1" "" "Y" "" "Y" "N" "N" "N"   filename "y" "Y") ))
(princ) )




(defun c:A3p(/)


(command "tilemode" "0")
(command "-plot" "y" "Layout1" "\\\\CTASERVER\\Brother MFC-6490CW Printer" "A3" "M"
"L" "N" "e" "F" "" "Y" "" "Y" "y" "N" "N" "n" "Y" "y" ) ))
(princ) )

 

0 Likes
432 Views
4 Replies
Replies (4)
Message 2 of 5

hmsilva
Mentor
Mentor

Hi MDub,

 

I can't see in your code something that may cause this behavior...

What AutoCAD version?

Are you loading just those codes, or are you loading from a file with more code lines?
If you open vlide, paste one code in it, load it and run the code, still turn on dyanmic input?

 

Henrique

EESignature

0 Likes
Message 3 of 5

paullimapa
Mentor
Mentor

See what happens if you include code to just turn off all dynamic input after your plotting code:

(setvar"DynMode" 0)

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales |Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 5

Anonymous
Not applicable

Thank you very much Pli! Sorry for the late reply but that fixed my issue completely 🙂 

0 Likes
Message 5 of 5

paullimapa
Mentor
Mentor
0 Likes