Skip to main content
Redblaze4080
Participant
October 5, 2017
Answered

Can you lock an objects alignment?

  • October 5, 2017
  • 8 replies
  • 3197 views

My discussion title/question is kind of vague to what I am asking.

At my place of work we use a lot of templates.  I am part of a team responsible for creating and updating these templates.  Most of them show distances between to points that have a line w a measurement label.  My question is as follows.

If you have a line and center align a text box/object to it, then later need to extend that line but still want the text box/object to be center aligned to it is there a way to lock that alignment so it will move as the line extends?

I know if you extend the line both ways symmetrically you don't have to worry about it, but that is not always the case I am set with.  Most of the time with a new template I just need to make a current template taller so I just direct select the top portion and move every thing up as needed.  Unfortunately, after that I then have to reselect the measurement lines and realign my text box measurement label.  I didn't know if there is a way to keep that track the centering when I extend the line up?  I am trying to avoid stretching also because that has its own fine tune adjustments after the fact.

I use Illustrator every day and have not come across a setting like this, but every update has its own secrets that I have to find and explore and didn't know if such feature existed.

What I am asking is if there is something kind of like Title Alignment, but to a particular object, so that when you edit the object if something is aligned to the object it would track and update the alignment.  Maybe there is a plugin out there?

This topic has been closed for replies.
Correct answer John Mensinger

If I understand correctly, you're describing a scenario in which object 1's alignment to object 2 can be set to stay coincident to object 2, even as object 2 is transformed. That would be an awesome feature, but it's not available in Illustrator currently.

Most drafting/modeling applications have something of that sort. But then those apps also amass relational data as objects are added and edited, whereas spacial relationships in Illustrator are governed by a relatively simple set of rules, and tend to be more "momentary" in nature; generally 'forgotten' after each operation. So, there may be some underlying obstacles to comprehensive implementation.

Request "Live Align" here: Illustrator Feature Requests (270 ideas) – Adobe Illustrator Feedback

8 replies

Redblaze4080
Participant
October 6, 2017

Thanks everyone. There are a lot of good suggestions here.  I never thought about using a Text on Path approach. The only issue with the way we have most things labeled is to keep the text horizontal on a vertical path.  Right now its just setup with multiple objects that if the line needs to be extended the objects for the text have to be manually realigned.  With photo example of the areas of what I was hoping to find a more automated solution to.

As mentioned in another post, I do know CAD has somewhat of a labeling feature... I just wish illustrator did to.  I know that is not the initial intent for the software so it does not surprise me that it does not.  At my work we use Illustrator for all our artwork setup and would be really out of the way to setup something in CAD to reopen in illustrator, plus my dept doesn't use CAD at all.

Thanks Everyone!

Kurt Gold
Community Expert
Community Expert
October 6, 2017

Can you see why it is almost always useful to show a sketch in the first place?

I could cobble together something that may be appropriate for the horizontal text on a vertical path, but I think you would be better served with a decent plugin for Illustrator (in case you don't want to use other applications at all).

Kurt Gold
Community Expert
Community Expert
October 6, 2017

If you follow James’ instruction you will get exactly the approach that is contained in the sample file I provided in post 4.

It's a detailed echo ;-)

JETalmage
Inspiring
October 6, 2017

Create a pathType object (Text On A Path):

(Or, just use a program which provides dimension lines with measures that auto-update when you change the width of the path.)

JET

Myra Ferguson
Community Expert
Community Expert
October 5, 2017

I tried this with Kurt's file, and it worked--if I understand correctly what you were wanting to do. The trick is setting up an action to reset your scaled text back to the 100% width. So I created a new action and let it record. I scaled the top line with the text, selected the text, clicked on Character in the context menu at the top, changed the Horizontal Scale back to 100, and stopped recording the action. I deleted the Scale instruction but kept the Character Setting. Now try scaling your line and text followed by running your action. You should be able to scale your line, run the action to fix your text, and keep it all centered in the meantime.

Kurt Gold
Community Expert
Community Expert
October 6, 2017

Well, you can make an action to reset the scaled text after you scaled the lines with the bounding box, but you don't have to do that because there is already a default shortcut to reset the text (Shift-Cmd-X, as mentioned in the sample file).

As long you are scaling (only) the lines with the Scale tool, you don't have to worry about text scaling as the text does not get scaled at all.

Myra Ferguson
Community Expert
Community Expert
October 6, 2017

I think the OP was looking to foolproof the process--and I am apparently the perfect fool to goof up your sample.

At first, I thought the OP posted their file, which I tested out  with the Free Transform Tool. I saw that it was centering with the Type on a Path (which is a great idea, BTW), but my free transform distorted the text. That's when setting up an action would help--when you have someone who doesn't read the instructions. Oops.

Kurt Gold
Community Expert
Community Expert
October 5, 2017

In this case it was not that hard for me to follow the request, but I may be wrong.

Anyway, you can download a sample .ai file (CC 2017 format) that contains a pretty simple approach. It may be appropriate, or not.

measurement_label_auto_centre_align_1.ai.zip - Google Drive

Mike_Gondek10189183
Community Expert
Community Expert
October 5, 2017

There are many suggestions we could offer, but depends on exactly what you are asking, which is hard to follow.

Would help if you show a before and after screenshot, post a file with dropbox or similar,  or simplify your question to one item at a time.

John Mensinger
Community Expert
John MensingerCommunity ExpertCorrect answer
Community Expert
October 5, 2017

If I understand correctly, you're describing a scenario in which object 1's alignment to object 2 can be set to stay coincident to object 2, even as object 2 is transformed. That would be an awesome feature, but it's not available in Illustrator currently.

Most drafting/modeling applications have something of that sort. But then those apps also amass relational data as objects are added and edited, whereas spacial relationships in Illustrator are governed by a relatively simple set of rules, and tend to be more "momentary" in nature; generally 'forgotten' after each operation. So, there may be some underlying obstacles to comprehensive implementation.

Request "Live Align" here: Illustrator Feature Requests (270 ideas) – Adobe Illustrator Feedback

Kurt Gold
Community Expert
Community Expert
October 5, 2017

I guess the type objects should be retained as (live) editable text objects. Does that apply?

Which version of Illustrator are you using?