Print Page | Close Window

Centering Reference Designator

Printed From: PCB Libraries Forum
Category: Libraries
Forum Name: Altium
Forum Description:
URL: https://www.PCBLibraries.com/forum/forum_posts.asp?TID=3323
Printed Date: 22 Nov 2024 at 9:35am


Topic: Centering Reference Designator
Posted By: rrix
Subject: Centering Reference Designator
Date Posted: 01 Oct 2023 at 3:53pm
Hi,

In the Post Process Script, does anyone know of a way to set the designator justification to center (horizontally and vertically) and move it to the middle of the part versus having to do it manually by clicking on the buttons and then moving the designator?





Replies:
Posted By: dramos
Date Posted: 01 Oct 2023 at 10:19pm
Hi to all,

Yes it is a really nice question!!!

 I use to center my designators and I have to do it manually too.

I was unable to find the way.

I hope anyone could help us.

Regards,
David




Posted By: dramos
Date Posted: 10 Nov 2023 at 4:39am
Hi rrix,

Did you find any way to center the designator?

Regards,
dramos


Posted By: Tom H
Date Posted: 11 Dec 2023 at 11:43am
We would like to add this to the new V24.01 release coming up later this week, but we don't know the script syntax for the center justification of the Ref Des. 



-------------
Stay connected - follow us! https://twitter.com/PCBLibraries" rel="nofollow - X - http://www.linkedin.com/company/pcb-libraries-inc-/" rel="nofollow - LinkedIn


Posted By: jaerts
Date Posted: 22 Dec 2023 at 1:14pm
This can be achieved using the IPCB_Text3 interface. You can see examples here:
https://github.com/Altium-Designer-addons/scripts-libraries/tree/master/Scripts%20-%20PCB/AssemblyTextPrep" rel="nofollow - https://github.com/Altium-Designer-addons/scripts-libraries/tree/master/Scripts%20-%20PCB/AssemblyTextPrep

https://github.com/Altium-Designer-addons/scripts-libraries/blob/master/Scripts%20-%20PCB/AssemblyTextPrep/AssemblyTextPrep.pas#L232" rel="nofollow - https://github.com/Altium-Designer-addons/scripts-libraries/blob/master/Scripts%20-%20PCB/AssemblyTextPrep/AssemblyTextPrep.pas#L232
(It's important to enable AdvancedSnapping!)


Posted By: dramos
Date Posted: 23 Dec 2023 at 2:59am
Dear jaerts,

Many thanks for the links, they seem really interesting. I will try to test them during the next days.

Marry Christmas and a beautiful 2024 !!!

Regards,
dramos




Print Page | Close Window