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

Insert line segment from ExtendScript

Community Beginner ,
Mar 11, 2022 Mar 11, 2022

Copy link to clipboard

Copied

Hi everyone,

 

I'm fairly new to ExtendScript and was curious as to whether it is possible to insert a line into Illustrator using the Line Segment tool and not as a PathItem?

I couldn't find anything in the documentation nor any similar queries on whether this could be done.

Please help!

Thank you.

TOPICS
Draw and design , Scripting

Views

222

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Mar 11, 2022 Mar 11, 2022

can you show what you're trying to draw? and explain why a pathItem is not an option?

Votes

Translate

Translate
Adobe
Guide ,
Mar 11, 2022 Mar 11, 2022

Copy link to clipboard

Copied

No, it's not possible to use the Line Segment tool through ExtendScript. 

 

For more on drawing a line:

https://community.adobe.com/t5/illustrator-discussions/drawing-a-line-with-javascript/m-p/12431243#M... 

Votes

Translate

Translate

Report

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 ,
Mar 11, 2022 Mar 11, 2022

Copy link to clipboard

Copied

can you show what you're trying to draw? and explain why a pathItem is not an option?

Votes

Translate

Translate

Report

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 Beginner ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

LATEST

Hi Carlos, 

 

You're right. PathItem achieves what I need. Just needed to draw a line.

 

Thanks @CarlosCanto  and @femkeblanco !

 

Regards,

John Joy

Votes

Translate

Translate

Report

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