Understanding PropVals and PropVal
Hello,
I am trying to automate the creation of some graphic shapes in Framemaker using ExtendScript and I had trouble adjusting the Line Width of the lines.
I was thinking to check all properties of the Line Object and see which is the correct property to change.
But I cannot understand at all how the PropVals work. Each PropVal has only a num and the Value. Do they also have a descriptive name?
var graphic = null;
var doc = app.ActiveDoc;
graphic = doc.FirstSelectedGraphicInDoc;
var frameParent = graphic.FrameParent;
var lineObj = doc.NewLine(frameParent);
for(var pos = 0; pos < lineObj.GetProps().length; pos++)
{
PrintPropVal(lineObj.GetProps()[pos]);
}
I also tried the PropVal function which is confusely named that same way as the PropVal object class.
And indeed, the script fails with error "PropVal is not a function", even though in the Framemaker Scripting Guide it is listed under Function Summary.
Any ideas how I can find out the correct property for Line Width? (Simply Width doesn't seem to do that)
Or any Ideas how to get the descriptive names of the object properties?
