Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: ESTK - draw a graphic

$
0
0

Hi klaus,

creating a list of Points should work like this:

 

var point1 = new Point(1, 2);
var point2 = new Point(4, 5);
var points = new Points();
points.push(point1)
points.push(point2)

 

point1.x gives the x-coordinate of a point

point2.y gives the y-coordinate of a point

both values are changeable

 

Note: you need to provide metrics and not cm or Inches.

 

To convert cm 2 metric you can use this function

 

    function convertCm2Metric(widthCm)    {        var cm2pt = 28.35;        return Math.round (widthCm * 65535 * cm2pt)    }

 

Hope this helps

Markus


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>