← Back to team overview

kicad-developers team mailing list archive

Re: [pcbnew] ZONE_CONTAINER does not save or use PadInZone

 

Hi

I have added a new line in brd file: ZClearance (int) (char), it stores a
clearance value and pad option.

Cheers
Rok

Kanardia d.o.o.
ul. heroja Rojška 70
3000 Celje
Tel: +386 3 424 42 42
Fax: +386 3 424 41 95


 --------------040809030301000702020609 Content-Type: text/plain;
name="Save_and_use_pad_option_and_clearance.dif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="Save_and_use_pad_option_and_clearance.dif"

SW5kZXg6IHBjYm5ldy96b25lc19ieV9wb2x5Z29uLmNwcAo9PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBw
Y2JuZXcvem9uZXNfYnlfcG9seWdvbi5jcHAJKHJldmlzaW9uIDk2NCkKKysrIHBjYm5ldy96
b25lc19ieV9wb2x5Z29uLmNwcAkod29ya2luZyBjb3B5KQpAQCAtNDkxLDYgKzQ5MSw4IEBA
CiAgICAgICAgIHNfQ3VycmVudFpvbmUgPSBOVUxMOwogICAgIH0KIAorCisKICAgICBaT05F
X0NPTlRBSU5FUiogem9uZTsKICAgICBpZiggbV9QY2ItPm1fQ3VycmVudFpvbmVDb250b3Vy
ID09IE5VTEwgKQogICAgICAgICBtX1BjYi0+bV9DdXJyZW50Wm9uZUNvbnRvdXIgPSBuZXcg
Wk9ORV9DT05UQUlORVIoIG1fUGNiICk7CkBAIC04NTAsOCArODUyLDggQEAKIAogICAgIEFm
ZmljaGVfMV9QYXJhbWV0cmUoIHRoaXMsIDIyLCBfKCAiTmV0TmFtZSIgKSwgbXNnLCBSRUQg
KTsKICAgICB3eEJ1c3lDdXJzb3IgZHVtbXk7ICAgICAvLyBTaG93cyBhbiBob3VyZ2xhc3Mg
Y3Vyc29yIChyZW1vdmVkIGJ5IGl0cyBkZXN0cnVjdG9yKQotICAgIHpvbmVfY29udGFpbmVy
LT5tX1BhZE9wdGlvbi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uZCBjbGVhcmFuY2UKKyAgICBzd2l0
Y2goIG1fUGFkT3B0aW9uICkKKyAgICB7CisgICAgZGVmYXVsdDoKKyAgICBjYXNlIFBBRF9J
Tl9aT05FOgorICAgICAgICBwYWRvcHRpb24gPSAnSSc7CisgICAgICAgIGJyZWFrOworICAg
IGNhc2UgVEhFUk1BTF9QQUQ6CisgICAgICAgIHBhZG9wdGlvbiA9ICdUJzsKKyAgICAgICAg
YnJlYWs7CisgICAgY2FzZSBQQURfTk9UX0lOX1pPTkU6CisgICAgICAgIHBhZG9wdGlvbiA9
ICdYJzsKKyAgICAgICAgYnJlYWs7CisgICAgfQorCisgICAgcmV0ID0gZnByaW50ZiggYUZp
bGUsICJaQ2xlYXJhbmNlICVkICVjXG4iLCBtX1pvbmVDbGVhcmFuY2UsIHBhZG9wdGlvbiAp
OworICAgIGlmKCByZXQgPCAyICkKKyAgICAgICAgcmV0dXJuIGZhbHNlOworCiAgICAgLy8g
U2F2ZSB0aGUgY29ybmVyIGxpc3QKICAgICBmb3IoIGl0ZW1fcG9zID0gMDsgaXRlbV9wb3Mg
PCBjb3JuZXJzX2NvdW50OyBpdGVtX3BvcysrICkKICAgICB7CkBAIC0yMjQsNiArMjQ0LDM3
IEBACiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfQogICAgICAgICB9CisgICAg
ICAgIGlmKCBzdHJuaWNtcCggTGluZSwgIlpDbGVhcmFuY2UiLCAxMCApID09IDAgKSAgICAv
LyBhdXggaW5mbyBmb3VuZAorICAgICAgICB7CisgICAgICAgICAgICBpbnQgIGNsZWFyYW5j
ZSA9IDIwMDsKKyAgICAgICAgICAgIGNoYXIgcGFkb3B0aW9uOworICAgICAgICAgICAgdGV4
dCA9IExpbmUgKyAxMDsKKyAgICAgICAgICAgIHJldCAgPSBzc2NhbmYoIHRleHQsICIlZCAl
MWMiLCAmY2xlYXJhbmNlLCAmcGFkb3B0aW9uICk7CisgICAgICAgICAgICBpZiggcmV0IDwg
MiApCisgICAgICAgICAgICAgICAgZXJyb3IgPSB0cnVlOworICAgICAgICAgICAgZWxzZQor
ICAgICAgICAgICAgeworICAgICAgICAgICAgICAgIG1fWm9uZUNsZWFyYW5jZSA9IGNsZWFy
YW5jZTsKKworICAgICAgICAgICAgICAgIHN3aXRjaCggcGFkb3B0aW9uICkKKyAgICAgICAg
ICAgICAgICB7CisgICAgICAgICAgICAgICAgY2FzZSAnaSc6CisgICAgICAgICAgICAgICAg
Y2FzZSAnSSc6CisgICAgICAgICAgICAgICAgICAgIG1fUGFkT3B0aW9uID0gUEFEX0lOX1pP
TkU7CisgICAgICAgICAgICAgICAgICAgIGJyZWFrOworCisgICAgICAgICAgICAgICAgY2Fz
ZSAndCc6CisgICAgICAgICAgICAgICAgY2FzZSAnVCc6CisgICAgICAgICAgICAgICAgICAg
IG1fUGFkT3B0aW9uID0gVEhFUk1BTF9QQUQ7CisgICAgICAgICAgICAgICAgICAgIGJyZWFr
OworCisgICAgICAgICAgICAgICAgY2FzZSAneCc6CisgICAgICAgICAgICAgICAgY2FzZSAn
WCc6CisgICAgICAgICAgICAgICAgICAgIG1fUGFkT3B0aW9uID0gUEFEX05PVF9JTl9aT05F
OworICAgICAgICAgICAgICAgICAgICBicmVhazsKKyAgICAgICAgICAgICAgICB9CisgICAg
ICAgICAgICB9CisgICAgICAgIH0KICAgICAgICAgaWYoIHN0cm5pY21wKCBMaW5lLCAiJGVu
ZCIsIDQgKSA9PSAwICkgICAgLy8gZW5kIG9mIGRlc2NyaXB0aW9uCiAgICAgICAgIHsKICAg
ICAgICAgICAgIGJyZWFrOwpAQCAtNTQwLDcgKzU5MSw3IEBACiAgICAgICAgIGVsc2UKICAg
ICAgICAgICAgIG1zZyA9IHd4VCggIjxub25hbWU+IiApOwogICAgIH0KLSAgICBlbHNlICAg
IC8vIGEgbmV0Y29kZSA84CBpcyBhbiBlcnJvcgorICAgIGVsc2UgICAgLy8gYSBuZXRjb2Rl
IDwgMCBpcyBhbiBlcnJvcgogICAgIHs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AoIG1fWm9uZV9Db250YWlu
ZXIgKSB7CisgICAgICAgIHRpdGxlID0gUmV0dXJuU3RyaW5nRnJvbVZhbHVlKCBnX1VuaXRN
ZXRyaWMsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtX1pvbmVfQ29u
dGFpbmVyLT5tX1pvbmVDbGVhcmFuY2UsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBtX1BhcmVudC0+bV9JbnRlcm5hbFVuaXRzICk7CisgICAgICAgIG1fWm9uZUNs
ZWFyYW5jZUN0cmwtPlNldFZhbHVlKCB0aXRsZSApOwogCi0gICAgaWYgKCBtX1pvbmVfQ29u
dGFpbmVyICkKKyAgICAgICAgc3dpdGNoKCBtX1pvbmVfQ29udGFpbmVyLT5tX1BhZE9wdGlv
biApCisgICAgICAgIHsKKyAgICAgICAgICAgIGNhc2UgWk9ORV9DT05UQUlORVI6OlBBRF9O
T1RfSU5fWk9ORToJCS8vIFBhZHMgYXJlIG5vdCBjb3ZlcmVkCisgICAgICAgICAgICAgICAg
bV9GaWxsT3B0LT5TZXRTZWxlY3Rpb24oIDIgKTsKKyAgICAgICAgICAgICAgICBicmVhazsK
KyAgICAgICAgICAgIGNhc2UgWk9ORV9DT05UQUlORVI6OlRIRVJNQUxfUEFEOgkJCS8vIFVz
ZSB0aGVybWFsIHJlbGllZiBmb3IgcGFkcworICAgICAgICAgICAgICAgIG1fRmlsbE9wdC0+
U2V0U2VsZWN0aW9uKCAxICk7CisgICAgICAgICAgICAgICAgYnJlYWs7CisgICAgICAgICAg
ICBjYXNlIFpPTkVfQ09OVEFJTkVSOjpQQURfSU5fWk9ORToJCQkvLyBwYWRzIGFyZSBjb3Zl
cmVkIGJ5IGNvcHBlcgorICAgICAgICAgICAgICAgIG1fRmlsbE9wdC0+U2V0U2VsZWN0aW9u
KCAwICk7CisgICAgICAgICAgICAgICAgYnJlYWs7CisgICAgICAgIH0KICAgICAgICAgc19a
b25lX0hhdGNoaW5nID0gbV9ab25lX0NvbnRhaW5lci0+bV9Qb2x5LT5HZXRIYXRjaFN0eWxl
KCk7Ci0gICAgZWxzZQorCisgICAgfQorICAgIGVsc2UgeworICAgICAgICBzd2l0Y2goIHNf
Wm9uZV9QYWRfT3B0aW9ucyApCisgICAgICAgIHsKKyAgICAgICAgICAgIGNhc2UgWk9ORV9D
T05UQUlORVI6OlBBRF9OT1RfSU5fWk9ORToJCS8vIFBhZHMgYXJlIG5vdCBjb3ZlcmVkCisg
ICAgICAgICAgICAgICAgbV9GaWxsT3B0LT5TZXRTZWxlY3Rpb24oIDIgKTsKKyAgICAgICAg
ICAgICAgICBicmVhazsKKyAgICAgICAgICAgIGNhc2UgWk9ORV9DT05UQUlORVI6OlRIRVJN
QUxfUEFEOgkJCS8vIFVzZSB0aGVybWFsIHJlbGllZiBmb3IgcGFkcworICAgICAgICAgICAg
ICAgIG1fRmlsbE9wdC0+U2V0U2VsZWN0aW9uKCAxICk7CisgICAgICAgICAgICAgICAgYnJl
YWs7CisgICAgICAgICAgICBjYXNlIFpPTkVfQ09OVEFJTkVSOjpQQURfSU5fWk9ORToJCQkv
LyBwYWRzIGFyZSBjb3ZlcmVkIGJ5IGNvcHBlcgorICAgICAgICAgICAgICAgIG1fRmlsbE9w
dC0+U2V0U2VsZWN0aW9uKCAwICk7CisgICAgICAgICAgICAgICAgYnJlYWs7CisgICAgICAg
IH0KICAgICAgICAgc19ab25lX0hhdGNoaW5nID0gbV9QYXJlbnQtPm1fUGFyZW50LT5tX0VE
QV9Db25maWctPlJlYWQoIFpPTkVfTkVUX09VVExJTkVTX0hBVENIX09QVElPTl9LRVksCiAg
ICAgICAgICAgICAobG9uZykgQ1BvbHlMaW5lOjpESUFHT05BTF9FREdFICk7CisgICAgfQog
CiAgICAgc3dpdGNoKCBzX1pvbmVfSGF0Y2hpbmcgKQogICAgIHsKQEAgLTMwOCw3ICszMjcs
NyBAQAogICAgICAgICAgICAgYnJlYWs7CiAKICAgICAgICAgY2FzZSBDUG9seUxpbmU6OkRJ
QUdPTkFMX0ZVTEw6Ci0gICAgICAgICAgIG1fT3V0bGluZUFwcGVhcmFuY2VDdHJsLT5TZXRT
ZWxlY3Rpb24oMik7CisgICAgICAgICAgICBtX091dGxpbmVBcHBlYXJhbmNlQ3RybC0+U2V0
U2VsZWN0aW9uKDIpOwogICAgICAgICAgICAgYnJlYWs7CiAgICAgfQogCg==
 --------------040809030301000702020609-- 




References