cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Which element(s) to look for when extracting an image snapshot from a .prt file?

ptc-5331071
1-Newbie

Which element(s) to look for when extracting an image snapshot from a .prt file?

Questions


1. Where can I find information on the names and roles of the associated elements (at least the ones related to 2D image representation)?


--> [ I know PreviewPNG represents the corresponding element in the SolidWorks (.SLDPRT) files. ]


Best regards,


Baldur

2 REPLIES 2

Sounds like an interesting project Baldur ...

PTC is not very open about their file formats, but then again it should
not be too difficult to figure it out.
Every part and assembly file has a bunch of headers, and there are a
few that may be of interest to you:

NeuPrtSld 1c44d 29 1e 1613 9 -1 0cfc
be04#######################################
NeuAsmSld 1c476 eb5 eaa 1613 9 -1 415c
1aaa#####################################
THMB_IMG_REPRESENTATION 2df19c 19d8 19bf 1613 11 -1 3e35
8c97###################

(that last header is placed almost at the end of the file for some
reason)

I suspect the first digit is the offset in the file, and the 2nd digit
is the length of the object in the file, the 3rd digit must be something
like the length of the object without headers. Then there is the version
number (1613 in this case), and some more numbers that i have no clue
about.

The thumbnail format seems to be JFIF, and if you want to be really
fancy you can create a 3D representation from the Neutral data.

Best regards,
Patrick Asselman

Thanks a lot, Patrick! These are excellent observations!!

Best regards,
Baldur
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags