01-30-2017
09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-30-2017
09:49 AM
Hi all
How do I edit the line code in inventor defaults.xml file ?
I want Inventor to collect the machine user name and added it in Options>General>user name .
Inventor defaults.xml file is shared within a team of 30 users.
Is this possible to do?
Regards
Luis Mestre
Luis Mestre
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com
Solved! Go to Solution.
01-30-2017
10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-30-2017
10:44 AM
You can use notepad, but I have been using XML Notepad (http://xmlnotepad.codeplex.com/). Much easier for editing the configuration files, as well as parameter files you need to export, edit and import. Kevin
01-31-2017
01:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-31-2017
01:11 AM
Hi Kevin
I use notepad as well to edit the files.
My question was about the code line.
Can you help?
Regards
Luis Mestre
Luis Mestre
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com
01-31-2017
03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-31-2017
03:52 AM
Well this doesn't edit the xml directly, but it does change the user name in options. This might accomplish what your trying to do.
Code Snippet
WSHnet = CreateObject("WScript.Network") UserName = WSHnet.UserName UserDomain = WSHnet.UserDomain objUser = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user") 'get user name UserFullName = objUser.FullName ThisApplication.GeneralOptions.UserName = UserFullName
02-02-2017
10:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-02-2017
10:31 AM
Hi
Do I h;ave to run the code as a vb macro?
If so all users will be able to load the macro at start up, correct?
Luis Mestre
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com
Oil&Gas Sr.3D & Subsea/Structural Designer
"Autodesk Autocad/Inventor & 3D Studio Max"
Email:lmsmestre@gmail.com