Skip to main content
1-Visitor
October 20, 2013
Question

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

  • October 20, 2013
  • 2 replies
  • 899 views

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

    1-Visitor
    October 21, 2013
    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

    1-Visitor
    October 21, 2013
    Thanks a lot, Patrick! These are excellent observations!!

    Best regards,
    Baldur