Page 1 of 1

Limits of custom properties

Posted: Fri Jan 23, 2015 2:07 pm
by mink
Hi,

I am looking for information of custom properties, which are available in the property editor. Obviously they are able to store Name::Value pairs, both Name and Value beeing a string. But I cannot find any info, neither in helpfiles, nor in the QCAd book.

I am especially interested if this mechanism has any limits. In paritcular:
- length of name part
- length of value part
- number of Name::Value entries

Can anybody help me with this info, or where I can find it?

Thanks in advance!

Ulrich

Re: Limits of custom properties

Posted: Fri Jan 23, 2015 3:01 pm
by andrew
mink wrote:- length of name part
- length of value part
QCAD itself does not impose any limits on these.

However, the DXF / DWG format does. QCAD saves these name / value pairs as one string XData property with the format "key:value" to DXF / DWG. This means that key may not contain a colon ":" and the total length of key + colon + value may not exceed the odd value of 8173 bytes which seems to be the limit imposed by the DXF / DWG format. Note that older DXF / DWG formats may have a different limit or may not support custom properties (XData) at all.
mink wrote:- number of Name::Value entries
I couldn't find a definitive answer for this. There is likely no limit imposed by the file format for this.

Re: Limits of custom properties

Posted: Fri Jan 23, 2015 3:13 pm
by mink
Thanks for the imediate anwer! That are limits I can live with!

Regards and have a nice weekend!

Ulrich