I found the setGlobalWidth(double w) function and was hoping/expecting to also find getGlobalWidth(), but it seems that function does not exist.
So, I looked into using getProperty() instead. Below is some diagnostic code where chkEnt is a PolylineEntity:
Code: Select all
var chkProp = chkEnt.getProperty(REntity.PropertyLayer);
EAction.handleUserMessage("getProperty = " + chkProp);
var chkProp = chkEnt.getProperty(REntity.PropertyLinetype);
EAction.handleUserMessage("getProperty = " + chkProp);
var chkProp = chkEnt.getProperty(REntity.PropertyDrawOrder);
EAction.handleUserMessage("getProperty = " + chkProp);
// var chkProp = chkEnt.getProperty(REntity.PropertyGlobalWidth);
// EAction.handleUserMessage("getProperty = " + chkProp);
However, if the // are removed from the last two lines, the debugger reports:
Wrong number/types of arguments for RPolylineEntity.getProperty(). <native>(undefined) at -1
Is there something special about PropertyGlobalWidth that I am missing? Or, if there is a better way to read the GlobalWidth value, I will appreciate the advice.
Thanks.
jcn