TheSwamp

CAD Forums => Vertically Challenged => Topic started by: Krushert on March 23, 2007, 02:02:58 PM

Title: Is it possible to get ... this done
Post by: Krushert on March 23, 2007, 02:02:58 PM
I was wondering.   :-o

Is it possible to or place a some piece of sort of "code" (lack of a better term) in the prefix spot for "Exporting to Autocad" in options dialog to provide the current date?  See Image.  Just curious to see if it can be done.  I know it can be done with code by creating a new command but I would like to see if it can be done thru "Options".

This should probably be in the code section but I thought this might be a better place to start.
Title: Re: Is it possible to get ...
Post by: Guest on March 23, 2007, 02:38:02 PM
I suppose it could be done but.....  That's held in the registry.

(vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Preferences\\AecGuiBase50") "ExportExplodedToAutoCADFilePrefix" "BVH-")

I have ours set to automatically prefix with the company name.
Title: Re: Is it possible to get ...
Post by: Krushert on March 23, 2007, 02:46:44 PM
I suppose it could be done but.....  That's held in the registry.

(vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Preferences\\AecGuiBase50") "ExportExplodedToAutoCADFilePrefix" "BVH-")

I have ours set to automatically prefix with the company name.
We prefix the date then the initials of the person/company we are sending it to.  I have a lisp routine to do what I am asking but I curious to see if it could be done just within the options or maybe registry.  But Messing with the registry .... ummm ...   :lol:
Title: Re: Is it possible to get ...
Post by: Birdy on March 23, 2007, 06:06:27 PM
<snip> 
But Messing with the registry .... ummm ...   :lol:
(http://www.whattablast.com/thumbnails/chicken_dancing.gif)

 awww c'mon.  give it a shot... let us know how it goes. send pics :lmao:
Title: Re: Is it possible to get ...
Post by: David Hall on March 23, 2007, 06:18:47 PM
I think I would write some code to update the registry when you call the export command.  That way it is always current (date) you are looking for
Title: Re: Is it possible to get ...
Post by: Krushert on March 24, 2007, 02:16:50 PM
The more I think of it, I like my lisp routine even more. 
And yes I am a little chicken when it comes to the registry.   :-D
Title: Re: Is it possible to get ...
Post by: Maverick® on March 26, 2007, 10:44:45 AM
  Hey Krush, any chance you could edit the subject line?  Think of all the things that could go after that.

Quote
Is it possible to get ...

  Good oranges outside of Florida.
  Herpes from a bicycle seat.
  Se7en's undies in a bunch.
  Etc. Etc.  :-D
Title: Re: Is it possible to get ...
Post by: Krushert on March 26, 2007, 11:01:21 AM
  Hey Krush, any chance you could edit the subject line?  Think of all the things that could go after that.

Quote
Is it possible to get ...

  Good oranges outside of Florida.
  Herpes from a bicycle seat.
  Se7en's undies in a bunch.
  Etc. Etc.  :-D

 How is that edit?  :-D :-D

only you (and maybe dent also) would think of this
Title: Re: Is it possible to get ...
Post by: Josh Nieman on March 26, 2007, 11:02:53 AM
  Hey Krush, any chance you could edit the subject line?  Think of all the things that could go after that.

Quote
Is it possible to get ...

  Good oranges outside of Florida.
  Herpes from a bicycle seat.
  Se7en's undies in a bunch.
  Etc. Etc.  :-D

 How is that edit?  :-D :-D

only you (and maybe dent also) would think of this

I thought it was worded: "Git 'er Done!"