PDA

View Full Version : Change File Properties



dugg
3rd Mar 2011, 01:18 pm
Anyone know how to change the Author and Company name that shows up on the General tab in the File Properties dialog box?
It looks like the Author field is tied to my windows username. I'd like it to be my full name.
The company name shows a company that we once used to be called. We have since merged with another company and the name has changed. I'm guessing this field is tied to the license somehow?

ReMark
3rd Mar 2011, 01:23 pm
What OS are you running?

envisioncad
3rd Mar 2011, 02:46 pm
Hi Dugg, you can create a mvba to run on the files.

Something like:

Sub PropertiesDGN()



ActiveDesignFile.Author = "Bob Mecham"
ActiveDesignFile.Company = "EnvisionCAD"
ActiveDesignFile.Client = "WisDOT"


MsgBox ActiveDesignFile.Author



End Sub

OR clear any other properties using this code

Sub clearProperties()

ActiveDesignFile.Comments = ""

ActiveDesignFile.Keywords = ""

ActiveDesignFile.Manager = ""

ActiveDesignFile.Subject = ""

ActiveDesignFile.Title = ""

End Sub

Once you have the MVBA then you can batch process all the files at once.

HTH,
Bob Mecham

dugg
3rd Mar 2011, 03:32 pm
What OS are you running?
I am using the Microsoft Vista operating system. I did change my user account name btw and that didn't change anything if that is where you are headed with your question?

dugg
3rd Mar 2011, 03:35 pm
Hi Dugg, you can create a mvba to run on the files.

Something like:

Sub PropertiesDGN()



ActiveDesignFile.Author = "Bob Mecham"
ActiveDesignFile.Company = "EnvisionCAD"
ActiveDesignFile.Client = "WisDOT"


MsgBox ActiveDesignFile.Author



End Sub

OR clear any other properties using this code

Sub clearProperties()

ActiveDesignFile.Comments = ""

ActiveDesignFile.Keywords = ""

ActiveDesignFile.Manager = ""

ActiveDesignFile.Subject = ""

ActiveDesignFile.Title = ""

End Sub

Once you have the MVBA then you can batch process all the files at once.

HTH,
Bob Mecham

Thanks Bob. I will use this if I ever need to change existing files. I'm more concerned with the files I create from here on out.
Can I put this section...


ActiveDesignFile.Author = "Bob Mecham"
ActiveDesignFile.Company = "EnvisionCAD"
ActiveDesignFile.Client = "WisDOT"

in a configuration file somewhere?

envisioncad
4th Mar 2011, 06:43 pm
dugg, you are correct the company name is coming from the license server and the username is coming from your pc. There are no variables to help you populate the properties when you create a new file. The only thing I can suggest at this point is batch process the files when you are done.

Sorry,
Bob Mecham

dugg
4th Mar 2011, 09:29 pm
Thanks for your help on this Bob.