Page 1 of 1

(SOLVED) Component parameter not preserved

Posted: Thu Apr 28, 2022 1:30 am
by -Tom-Tom-
I modeled this connector. All seems good.

Image

If I save this project as *.zofzproj, close ZofzPCB, and open this file, „Left180“ was not saved. (I have sent the file via email as VISION_AMP3251_v3.8.zofzproj )

Image

Re: Component parameter not preserved

Posted: Sat May 07, 2022 10:30 pm
by Zofz
OK, done (version above 2.0.0.12)
But it has consequences;
The problem was a simple bug, also affecting the .camset file.
In testing, I have discovered that some component model rotation was done by rotating pins (and body elements) instead of rotating the whole component. This was due to keeping the pin numbers/names in place.
In other words, if you are using a body-builder and rotate the component later, the body could be rotated differently (e.g., not rotated).
Now, the model is joined before rotation.
Affected components are of symmetrical shapes, like headers and IDC connectors. Those components have a rotation model parameter.
(I still need to do some testing, checking other possible component models.)
The consequence of this fix is that, in some cases, you will need to change the sign of body elements' coordinates.