Calcualating length of lines in a layer
Posted: Mon Jun 15, 2009 5:21 pm
I'm using qcad to do some rather simple pipe drawing. I place every pipe on a separate layer, that way I can easily calculate the total length of each pipe with the "Total length of selected entities"-tool.
I was hoping to be able to do this rather automatically with a script. Is that possible? My approach was to use the "select layer" and then the tool previous mentioned, but the
results in
Error. Use of undefined variable 'Selection'
Isn't there supposed to be a Selection class?
Some guidance would be very appreciated!
I was hoping to be able to do this rather automatically with a script. Is that possible? My approach was to use the "select layer" and then the tool previous mentioned, but the
Code: Select all
var sel = new Selection;
Error. Use of undefined variable 'Selection'
Isn't there supposed to be a Selection class?
Some guidance would be very appreciated!