Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

How to use Variables in Adobe Illustrator?

Explorer ,
Sep 30, 2023 Sep 30, 2023

Dear community, 

 

I am trying to solve a thinkg in illustator, which may or may not work 🙂

I like Adobe Illustrator because of the simplicity and I would like to use it for my 2D vector graphic for my CNC machine.

 

The problem is, that I would like to set some variables for certain dimensions, which I can change later on.

In my case its usually because of the depth of the material I am using. As example I attached classic scenario for Finger Joints. Where The red lines should be the ones , Which I would like to make shorter or longer in case the material thickness change.

 

I can do it in 3D SW where this is completely normall, that each line has some variable, but for simple models, I can prototype it really quickly in Adobe Illustrator and this is the only think which is an obstale for me.

 

thanks for any hints.

TOPICS
Draw and design , How-to , Scripting , Third party plugins
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Oct 01, 2023 Oct 01, 2023

I'll start with a clarifying question. Once you have drawn this snake, what prevents you from selecting the top row of points and using the keyboard arrows to move along the Y-axis by a specified step (Preferences > General > Keyboard Increment)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2023 Oct 01, 2023

Hi Sergey,

in this easy case yes, I can do it. but in more complicated models, I would need to edit for example 50 places . Thats why I am looking for a solution which is in other applications where I can insert instead of length 3mm a variable like teethLength = 3mm and if I want to change it in all model I just change the value of he variable to e.g. 4mm and all lines with length "teethLength" adopt accordingly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 01, 2023 Oct 01, 2023

Illustrator has no such variables. I understand that changing the number in the variable should not only change the length of the red line, but also move all adjacent lines? This is probably not an easy task for a script to do either.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2023 Oct 01, 2023

Yes correct, would need to know the direction in which to move .

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2023 Oct 01, 2023

Another clarifying question: Global Editing or using and modifying symbol instances wouldn't work for you?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 02, 2023 Oct 02, 2023

I am not familiart with Global Editing, I will check what it can do. thank for tip

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 04, 2023 Oct 04, 2023

Unfortunatelly with global editing, I can edit whole object, but not for example in this case only the teeths

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2023 Oct 04, 2023

would something like this help?

https://www.makercase.com/#/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2023 Oct 04, 2023
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2023 Oct 04, 2023
LATEST

As far as I understand, you actually can do it with Global Editing, but it may very well be that I misunderstand your task. Can you perhaps share some more complex sample Illustrator file with instructions to explain what exactly you are going to do?

 

Also, I think you may like using symbols in this case.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines