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

Re: ESTK - draw a graphic

$
0
0

@Markus:

«NumPoints and Points are readonly properties in ES (at least when I have a look to ObjectModel-Viewer)»

In FDK reference and FM-15 Scripting Guide it is just IntT - no mentioning of Read-Only. In the Object Reference (.chm) by  Jongware (although for FM-12) it is defined readwrite. And in the Object Model Viewer I get:

Polyline.NumPoints ; Data Type: int ; Adobe FrameMaker-2017 Object Model

Where did you see the ReadOnly? Well, this does not prove that it is really writeable...

 

«What I would do is to draw a polyline that I expect, and check to points and the order they are set.»

The comparison of output and my 'reply' 5 shows that I already did that - because it is natural for math-affined people like me.

 

Yes, constants are good, if they exist. For the pen pattern only 3 of 15 are definable via constant. The metric values (e.g. FV_METRIC_CM) are not present in ESTK, justin FDK.

 

@Rick: It seems that PolyLine is broken in ESTK, because there is definitely no possibility to overcome the 3-point limit and the points are not set at all to the user values.

Even after halting the script after these statements Data Browser states: NumPoints = 3 and Points = [object Point],[object Point],[object Point]

var oPoly = oDoc.NewPolyline(oFrame);  oPoly.Points = [];  oPoly.Points.length = 0;

 

I will demomstrate this to Amitoj in Stuttgart.


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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