TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Lee Mac on September 06, 2010, 04:54:56 PM

Title: .bak files, plot.logs, .err logs
Post by: Lee Mac on September 06, 2010, 04:54:56 PM
A few quick questions if I may   :-)



( 1 )

Goal:

Turn off creation of .bak files programmatically.

Research:

ISAVEBAK System Variable - stored in registry also (but where?)

Is this the best way to do this?



( 2 )

Goal:

Turn off creation of plot.log files programmatically.

Research:

Code: [Select]
(command "_.-plotstamp" "_Log" "_OFF" "" "")
Is there no System/Environmental Variable for this? Is there a better way to approach this?



( 3 )

Goal:

Turn off creation of .err files (error logs) programmatically.

Research:

Found REPORTERROR - but does this stop the .err files also?

Searched Swamp LISP section - not too much that is relevant, Google didn't give me too much either.



Many thanks for your interest,

Lee
Title: Re: .bak files, plot.logs, .err logs
Post by: roy_043 on September 06, 2010, 05:27:10 PM
( 2 )

Goal:

Turn off creation of plot.log files programmatically.

Research:

Code: [Select]
(command "_.-plotstamp" "_Log" "_OFF" "" "")
Is there no System/Environmental Variable for this? Is there a better way to approach this?
http://www.theswamp.org/index.php?topic=27798.msg333739#msg333739
Title: Re: .bak files, plot.logs, .err logs
Post by: Lee Mac on September 06, 2010, 05:42:46 PM
( 2 )

Goal:

Turn off creation of plot.log files programmatically.

Research:

Code: [Select]
(command "_.-plotstamp" "_Log" "_OFF" "" "")
Is there no System/Environmental Variable for this? Is there a better way to approach this?
http://www.theswamp.org/index.php?topic=27798.msg333739#msg333739

Superb Roy, appreciated indeed.  :-)
Title: Re: .bak files, plot.logs, .err logs
Post by: Lee Mac on September 06, 2010, 06:10:14 PM
( 2 )

Goal:

Turn off creation of plot.log files programmatically.

Research:

Code: [Select]
(command "_.-plotstamp" "_Log" "_OFF" "" "")
Is there no System/Environmental Variable for this? Is there a better way to approach this?
http://www.theswamp.org/index.php?topic=27798.msg333739#msg333739

Re: AutomaticPlotLog property

Quote from: AutoCAD Help
This property is equivalent to the AutoCAD Options dialog box setting "Automatically Save Plot and Publish Log."

Is this the same as the individual plot.log text files that are created in the working directory? Or is this referring to the Plot and Publish CSV file?

BTW: this is for ACAD2004-7
Title: Re: .bak files, plot.logs, .err logs
Post by: VovKa on September 07, 2010, 03:50:52 AM

ISAVEBAK System Variable - stored in registry also (but where?)

Code: [Select]
(vl-registry-read (strcat "HKEY_CURRENT_USER\\"
  (vlax-product-key)
  "\\Profiles\\"
  (getvar "CPROFILE")
  "\\General Configuration\\"
  )
  "IsaveBackupDwg"
)
Title: Re: .bak files, plot.logs, .err logs
Post by: Lee Mac on September 07, 2010, 04:12:10 AM
Ahhh... General Configuration - I spent all my time trawling through General...  :oops:

So, for concision, perhaps something like this?

Code: [Select]
(getenv "IsaveBackupDwg")
Title: Re: .bak files, plot.logs, .err logs
Post by: roy_043 on September 07, 2010, 04:18:53 AM
Is this the same as the individual plot.log text files that are created in the working directory? Or is this referring to the Plot and Publish CSV file?
Bricscad doesn't create plot log files, so I can't help you with that one. I was just repeating a link that I remembered seeing on a different forum. It seemed to fit the bill...
Title: Re: .bak files, plot.logs, .err logs
Post by: Lee Mac on September 07, 2010, 04:21:00 AM
Is this the same as the individual plot.log text files that are created in the working directory? Or is this referring to the Plot and Publish CSV file?
Bricscad doesn't create plot log files, so I can't help you with that one. I was just repeating a link that I remembered seeing on a different forum. It seemed to fit the bill...

Ok, thanks anyway Roy, I'd never use vla-get-output before and I love learning a new one  :-)