Format of AutoCAD's plotting support files (CTB, STB, PC3, PMP)

These plotting support files use "zlib" compression. After decompression you get an ASCII file that is more or less "human readable".

The compressed file starts with a 59 bytes long header that has nothing to do with this type of compression - it makes these files more or less proprietary. The header contains some identification strings - that is the easy part. The only obscure things remain bytes 48..55 and 56..59. They seem to be numbers related to the content (CRC?). To decompress, this whole header can be skipped. To test this, just crop the first 59 bytes from the file with an editor and use a zlib tool to decompress the "decapitated" file.

To compress, a header should be added, containing the strings like "PIAFILEVERSION..." and the numbers have to be written in it. But what numbers? I have found that AutoCAD seems to read and interpret the files without problems if the numbers are large enough - it just takes a little longer than with the calculated numbers. In my experimental tool I use this (hex) sequence FF FF FF FF FF FF FF 00 FF FF FF 00.

If you are interested, or have more info yourself, please contact me.

Tags: -

Related entries:

  •  

 

Last update: 2006-08-27 20:18
Author: Govert
Revision: 1.3 

原文见http://www.noliturbare.com/index.php

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值