Hallo Uwe,
die UG-Release mit der die Datei zuletzt gespeichert wurde wird in
den Datei Header eingetragen und lässt sich dort auch wieder auslesen.
Ich hoffe der folgende Artikel hilft Dir dabei.
Gruss Michael
PRODUCT: UG
SUBJECT: Magic number for UG V18 part file
SUBMITTED BY: MICHAEL HANZLIA SUBMITTED DATE: 09/10/2001
IR #: 4329510 DOCUMENT ID: 001-4329510
PLATFORM: SUN4 OPERATING SYSTEM: SOLARS
OS VERSION: 8 PRODUCT VERSION: V18.0
===============================================================================
HARDWARE/SOFTWARE CONFIGURATION
-------------------------------
All unix platforms
SYMPTOM/PROBLEM
---------------
Some customers use the /etc/magic entries to determine the version of
Unigraphics part files. This information is subsequently used to create CDE
icons (CDE actions) for file manager where users can visually see the version
number of the part file.
What are the /etc/magic entries for UG V16 - V18 part files?
SOLUTION/WORKAROUND
-------------------
The entries for /etc/magic are:
2562 string UGII Unigraphics part file
>2568 short 0x0024 V16.0
>2568 short 0x2400 V16.0
>2568 short 0x0025 V17.0
>2568 short 0x2500 V17.0
>2568 short 0x0026 V18.0
>2568 short 0x2600 V18.0
Remember, there are TABS between the fields in the /etc/magic file -- not
spaces.
Also there are two entries for each version because part files can be create on
two different styles of computer. The byte order storage of a machine is
sometimes referred to as little-endian and big-endian architecture. Entries
0x2400,0x2500,0x2600 are little-endian.
REFERENCES/NOTES
----------------
------------------
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP