Search found 5 matches

by Tomtefar
Wed Mar 23, 2011 9:31 pm
Forum: dxflib 'How Do I' Questions
Topic: Get length of polyline
Replies: 1
Views: 25458

Get length of polyline

Is there a magical way to get the total length of a polyline?
It has to work with rounded corners. I only have one polyline per layer if that makes it easier.

At the moment I use normal lines which I calculate the total length of by using their coordinates (they lack the rounded corners though).
by Tomtefar
Wed Jun 30, 2010 11:11 am
Forum: QCAD 2.1/2.2 'How Do I' Questions
Topic: Round multiple corners
Replies: 2
Views: 29051

Round multiple corners

I've got a lot of lines that are connected at 90 degrees and would like to round the corners at all connections. Is that possible to accomplish without manually clicking on every entity? Edit: Found out how to do it in Autocad: Draw the lines as Polylines and then apply the command FILLET on polylin...
by Tomtefar
Fri Jun 19, 2009 5:03 pm
Forum: QCAD 2.1/2.2 Developers
Topic: Calcualating length of lines in a layer
Replies: 4
Views: 36285

Did a little work on the test program in dxflib and managed to get what I want from there.
So if anyone is interested in calculating the length of Line entities in a drawing I got some source code, it may be a bit ugly, but it works for me :)
by Tomtefar
Wed Jun 17, 2009 8:07 am
Forum: QCAD 2.1/2.2 Developers
Topic: Calcualating length of lines in a layer
Replies: 4
Views: 36285

I see. Will it be supported soon or should I start to write something (non-qcad-scripting) to get the data from the .dxf-file?
by Tomtefar
Mon Jun 15, 2009 5:21 pm
Forum: QCAD 2.1/2.2 Developers
Topic: Calcualating length of lines in a layer
Replies: 4
Views: 36285

Calcualating length of lines in a layer

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 a...

Go to advanced search