Page 1 of 1

custom attributes

Posted: Fri Apr 20, 2018 11:55 am
by pdubalen
In addition to the area attribute of the polyline I would also need xmax, xmin, ymax and ymin.
Is is possible to define custom attributes for these informations ? May be I need the pro version to do that.

Additionaly, is it possible to extract a list of all polylines objetcs in a drawing with some attributes, to use it for statistical purposes with Excel for example ?
Thank you.

Re: custom attributes

Posted: Fri Apr 20, 2018 12:22 pm
by andrew
pdubalen wrote:In addition to the area attribute of the polyline I would also need xmax, xmin, ymax and ymin.
Is is possible to define custom attributes for these informations ? May be I need the pro version to do that.
Not without changing C++ code.
Additionaly, is it possible to extract a list of all polylines objetcs in a drawing with some attributes, to use it for statistical purposes with Excel for example ?
Sure, using the script interface, you could relatively easily build a tool that exports information about entities to CSV or XML for example.

Re: custom attributes

Posted: Fri Apr 20, 2018 3:04 pm
by pdubalen
Oh thanks, the x and y coordinates of the points of the polyline being available, I thought that the calculation of min and max was not a big issue, but OK.

Is the pro version required to use what you call the script interface ?

Thanks again.

Re: custom attributes

Posted: Fri Apr 20, 2018 3:24 pm
by andrew
pdubalen wrote:Oh thanks, the x and y coordinates of the points of the polyline being available, I thought that the calculation of min and max was not a big issue, but OK.
It's not. The bounding box is just not something a user is typically interested in.
pdubalen wrote:Is the pro version required to use what you call the script interface ?
No, see "scripts" folder.