DAVECLARK
 50+ Poster Posts:53

 |
| 14 May 2009 09:51 AM |
|
Made a small program that detects catia version .
Just right click in windows explorer > check version and a form appears with the right version.
ADD CONTEXTMENU IN WINDOWSEXPLORER
COPY THIS EXE FILE INTO SPECIFIC FOLDER
EXAMPLE : C:\DOWNLOADS\CATIA_VERSION.EXE
OPEN EXPLORER > TOOLS > FOLDER OPTIONS > FILE TYPES
SELECT CATPART
ADVANCED>NEW
ACTION : CATIA VERSION
APPLICATION USED TO PERFORM ACTION : C:\DOWNLOADS\CATIA_VERSION.EXE
SAVE AND EXIT
INTO FILE EXPLORER RIGHT CLICK A CERTAIN CATPART
CLICK CATIA VERSION
CATIA VERSION WILL APPEAR IN WINDOW FORM
enjoy
exe file can be downloaded on following attachment
rename txt file in zip ...
|
|
|
|
|
GSAUN
 50+ Poster Posts:172

 |
| 14 May 2009 11:03 AM |
|
Thanks Dave,
I received an error as a limited user. I'm guessing from the Java console that because I'm denied access to write on C:, the program wouldn't continue. Anyway to parse to a user's temp directory?
Base Error Unhandled Exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the applilcation will close immediately.
Details: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.UnauthorizedAccessException: Access to the path 'c:\checkversion.bat' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at testreg.Form1.Createbat() at testreg.Form1.Timer1_Tick(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- testreg Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/CATIA%20V5%20Version%20Checker%20-%20Dave%20Clark/CATIAVERSION.exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll ----------------------------------------
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. |
|
| Gary Saunders |
|
|
DAVECLARK
 50+ Poster Posts:53

 |
| 15 May 2009 01:56 AM |
|
Have updated the program.
Copy the exe file in a directory where you must have write access!
Doesn't matter where you copy the file.
Very first time you opens the program necessary files are been created.
Then you never have to worry what happens it all works automatically.
Please have a look if your problem is solved now.
OS : windows xp
regards Dave |
|
|
|
|
MCHITJIAN
 200+ Poster Posts:370

 |
| 15 May 2009 10:09 AM |
|
Here is another way to determine the version, release and service pack of a CATPart. A bit messy, but quick.
Keep in mind it will take awhile for large files.
Go to the directory where the CATPart is and right click on the CATPart and open with either Wordpad or Notepad.
Perform a "Find" on "minimalversiontoread". No spaces.
You'll get the info as shown below.
 |
|
Mark Chitjian COE Product Digital NC Cochair Dassault Systemes Americas Corp. Poughkeepsie, NY mark.chitjian@3ds.com |
|
|
DAVECLARK
 50+ Poster Posts:53

 |
| 15 May 2009 01:43 PM |
|
That's the way my program is working.
But works very fast.
right click on file and .... |
|
|
|
|
MCHITJIAN
 200+ Poster Posts:370

 |
| 15 May 2009 02:11 PM |
|
Ok Dave, I'll check it out. Thanks. |
|
Mark Chitjian COE Product Digital NC Cochair Dassault Systemes Americas Corp. Poughkeepsie, NY mark.chitjian@3ds.com |
|
|
KBRAND
 50+ Poster Posts:88


 |
| 17 May 2009 08:19 PM |
|
Awesome program Dave. Is there anyway to get it to extract the service pack too? |
|
| Kyle Brand |
|
|
GSAUN
 50+ Poster Posts:172

 |
| 18 May 2009 07:39 AM |
|
That worked Dave. Nice program. |
|
| Gary Saunders |
|
|
DAVECLARK
 50+ Poster Posts:53

 |
| 19 May 2009 12:32 PM |
|
Added servicepack, builtdate, hotfix number
1)RESULT :
2)INSTALLATION
Copy exe into folder (You must have write access in the folder!)
Open explorer
click advanced
new
And done
Now in explorer a contextmenu CATIA_VERSION is added when you rightclick on a catpart.
|
Attachment: 151932517049.zip
|
|
|
|
GSAUN
 50+ Poster Posts:172

 |
| 20 May 2009 08:15 AM |
|
Nice job Dave. Great program. |
|
| Gary Saunders |
|
|
KBRAND
 50+ Poster Posts:88


 |
| 20 May 2009 08:57 AM |
|
Awesome tool. Very useful especially in our work environment were we have many different releases. |
|
| Kyle Brand |
|
|
ydoering
 Occasional Poster Posts:5

 |
| 20 May 2009 08:57 AM |
|
yes, great job Dave.
I was wondering, if it would be possible to create/support also a handy portable version.
-> start the application and drag&drop files (CATparts) on the GUI ? |
|
|
|
|
DAVECLARK
 50+ Poster Posts:53

 |
| 20 May 2009 04:03 PM |
|
ydoering,
What exactly you wanna see on that GUI?
a Form where you can see in a datagrid all files you drag/drop (or rightclick) with Release/sp/...
Can you please explain more what you wanna see on the form? Then I'll have a look to built the program. (if it's not to difficult :p )
regards Dave |
|
|
|
|
JAMES2703
 Occasional Poster Posts:18


 |
| 21 May 2009 08:33 AM |
|
Dave, I like the program. Thanks. One question though, I am using Vista 64 and instead of the menu pick being "Catia Version" is shows up as "testreg". This appears to be the Description/Product name in the file properties. Can this be changed? |
|
|
|
|
DAVECLARK
 50+ Poster Posts:53

 |
|
SAMARINDER
 500+ Poster Posts:858


 |
|
PHILHARRISON
 200+ Poster Posts:224


 |
| 26 May 2009 04:23 PM |
|
fyi there has been a program in the shareware library with similar functionality called "Which_Version" |
|
|
|
|
phalakatti
 Occasional Poster Posts:2

 |
| 16 Jun 2009 10:52 PM |
|
Its good solution. previously I am checking it by open with notead and search by CATIAV5.
thanks for your information |
|
|
|
|
butolyun
 50+ Poster Posts:52

 |
| 19 Jun 2009 06:52 AM |
|
Good job Dave, I am using it thank you. |
|
|
|
|
HICHAM11
 Occasional Poster Posts:3

 |
| 22 Jun 2009 02:56 PM |
|
Hi
Another way to check CATIA version of the part. If you have the part opened in Catia, just go to Desk and right click on it, then go to properties and you will see the version, release and service pack.
Thanks
|
|
|
|
|