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

Is it possible to place .svg file with script inside Illustrator?

Explorer ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

Is it possible to place .svg file with script inside Illustrator?

Using .. docR.placedItems.add()...

 

I am getting error message "'The file "FileName.svg" is in a format which cannot be placed'".

TOPICS
Scripting

Views

482

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

Explorer , Nov 26, 2022 Nov 26, 2022

I have found on the forum and stackoverflow this solution:

https://community.adobe.com/t5/illustrator-discussions/svg-files-into-one-layered-ai-file/m-p/4733761

https://stackoverflow.com/questions/28839109/place-svg-in-illustrator

 

var svgFile = File.openDialog("Select File to place...");

var doc = app.activeDocument;

doc. groupItems.createFromFile( svgFile );

 

If someone has something else to add welcome?

 

Votes

Translate

Translate
Adobe
Explorer ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

I have found on the forum and stackoverflow this solution:

https://community.adobe.com/t5/illustrator-discussions/svg-files-into-one-layered-ai-file/m-p/473376...

https://stackoverflow.com/questions/28839109/place-svg-in-illustrator

 

var svgFile = File.openDialog("Select File to place...");

var doc = app.activeDocument;

doc. groupItems.createFromFile( svgFile );

 

If someone has something else to add welcome?

 

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 ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

LATEST

Hi @livl17017666, no you've found the answer. Illustrator doesn't seem to let us place SVGs as links. You could check out my answer here for an unusual use case, but what you've got is basically the whole answer.

- Mark

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