Limits of custom properties

Do you have a question you want to ask an existing QCAD user about QCAD and what you can do with it? Do you want to know if a particular feature exists? This is the place to ask.

Moderator: andrew

mink
Active Member
Posts: 30
Joined: Mon Jan 19, 2015 7:20 pm

Limits of custom properties

Postby mink » Fri Jan 23, 2015 2:07 pm

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

User avatar
andrew
Site Admin
Posts: 5055
Joined: Fri Mar 30, 2007 6:07 am

Re: Limits of custom properties

Postby andrew » Fri Jan 23, 2015 3:01 pm

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.

mink
Active Member
Posts: 30
Joined: Mon Jan 19, 2015 7:20 pm

Re: Limits of custom properties

Postby mink » Fri Jan 23, 2015 3:13 pm

Thanks for the imediate anwer! That are limits I can live with!

Regards and have a nice weekend!

Ulrich


Return to “Pre-sales Questions”

Who is online

Users browsing this forum: No registered users and 1 guest