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

[JS] how to create a dotted line?

Participant ,
Jan 15, 2017 Jan 15, 2017

hi.. i've created a line in below statement, can anyone help to make it a 'dotted line' using JS?

var myLine = activeSpread.graphicLines.add();

Thanks much..

TOPICS
Scripting
1.3K
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

correct answers 1 Correct answer

Participant , Jan 16, 2017 Jan 16, 2017

found the answer already....  

myLine.strokeType= "Dotted";

@

Translate
Participant ,
Jan 16, 2017 Jan 16, 2017

found the answer already....  

myLine.strokeType= "Dotted";

@

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 ,
Jan 16, 2017 Jan 16, 2017

Hi eboda_snaf,

just a note on your found string:

With my German InDesign this string would not work.

Instead I'd use the internationally working string:

"$ID/Canned Dotted"

Regards,
Uwe

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
Participant ,
Jan 16, 2017 Jan 16, 2017

i see.. Thank 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
Community Expert ,
Jan 16, 2017 Jan 16, 2017
LATEST

Here a list of all locale independent strings that should work for strokeType:

$ID/Solid

$ID/ThickThick

$ID/ThickThin

$ID/ThickThinThick

$ID/ThinThick

$ID/ThinThickThin

$ID/ThinThin

$ID/Triple_Stroke

$ID/White Diamond

$ID/Japanese Dots

$ID/Canned Dashed 3x2

$ID/Canned Dashed 4x4

$ID/Left Slant Hash

$ID/Straight Hash

$ID/Canned Dotted

$ID/Dashed

$ID/Wavy

$ID/Right Slant Hash

Regards,
Uwe

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