-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QuickSilk - add ability to rotate part while retaining relative silkscreen position #191
Comments
Initial thoughts: But what if the text was not placed with QuickSilk so its position rules can't be reliably inferred?
|
Solution 1:
Solution 2:
Solution 3:
Solution 4:
|
@dsicon the way it would work with #1 is if you use QuickSilk to, say, place the silkscreen text in the "Left-Below" octant around the part, the positioned text would be aligned to the Top-Left corner so that the text grows down and to the right. If I were to come along and rotate the part, I would note that the text alignment is Top-Left and infer that the user placed the text in the "Left-Below" octant. Then I would do the rotation on the part and re-apply the QuickSilk routine as if the user clicked "Left-Below" octant again. One of the right-two options below, depending on what we agree is better. I prefer the "ALT" case. |
@dsicon the "autoposition" property in this context is how Altium's internal algorithm places the designator around the part. The key interaction between this and what QuickSilk does (and how I would infer what autoposition was originally used) is that QuickSilk sets the text's justification anchor so that the text always grows away from the part. If you had a manually-placed designator that didn't have the expected justification, it could mistake what side the text is on, sort of. I can probably come up with a more agnostic way to determine what the closest autoposition location is, I just need to be careful about performance and corner cases. For example, I could counter-rotate the text, see what "side" of the part its center mass is closest to, and try autopositions from there. A little bit of solutions 3 and 4. |
It would be useful to be able to rotate a part while retaining the relative position of its Designator and Comment silkscreen texts, but how should it be implemented?
The text was updated successfully, but these errors were encountered: