Ícone do Arquivo
 
 

3429

Purge Short Lines

This Inkscape extension lets you delete lines shorter than a given threshold.

The extension was made to clean up heavy PDFs exported from SketchUp, but can probably be used in various other situations too.

*Install*
Copy the content in src/ into your Inkscape extension directory. The extension directory path can be found in Edit > Preferences > System inside of Inkscape.

Tested in Inkscape 0.91 and 0.92 on Windows 7 and Windows 8

Inkscape Extensions

Tamanho
1,4 KB
Criado
Tipo
application/zip
MIT License (MIT)

Link

reselty escreveu :

Hi Christina
Thank you very much for playing around for building something like this !

Where can I find it in the program after installation?
How to use it?

Looks like you use Inkscape for a similar "use" - architecture...
Would be nice to have some exchange around it... ;-)

Have a good one !

brynn escreveu :

Hello,
Thank you for providing this extension for Inkscape users!

This is just to let you know that most 3rd party Inkscape extensions, like this one, probably will not work with the upcoming new Inkscape version, the long-awaited version 1.0.

Here is the info you need to update this extension, so that it will work with 1.0 and future versions.
https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0

If you have further questions, you can contact Inkscape developers via mailing lists (https://lists.inkscape.org/postorius/lists/?all-lists), forum (https://inkscape.org/forums/extensions/), or the chatroom (https://chat.inkscape.org/channel/team_devel)

If you have already updated it, please disregard this message.

All best,
brynn

reselty escreveu :

What is wrong:
I tried different values in different Inkscape Versions - allways following message:
----
Traceback (most recent call last):
File "eneroth_purge_short_edges.py", line 64, in <module>
EnerothPurgeShortEdges().affect()
File "D:\z_Temp_nicht BackUpn\USB-Stick,20140205\Programme\Graphik,Zeichnen\Inkscape-0.91-1-win64\inkscape\share\extensions\inkex.py", line 268, in affect
self.effect()
File "eneroth_purge_short_edges.py", line 27, in effect
self.iterate_node(self.document.getroot())
File "eneroth_purge_short_edges.py", line 35, in iterate_node
self.iterate_node(child)
File "eneroth_purge_short_edges.py", line 35, in iterate_node
self.iterate_node(child)
File "eneroth_purge_short_edges.py", line 33, in iterate_node
self.do_node(node)
File "eneroth_purge_short_edges.py", line 51, in do_node
coords[0] += prev_coords[0]
TypeError: 'NoneType' object is unsubscriptable

Eneroth3 escreveu :

This script only supports straight lines. As my use case of SketchUp exports only contain straight lines I didn't think of checking if an element is supported before collecting the start and end point. This is likely the issue.

reselty escreveu :

Thank you for letting me know!

I think I use it for the same issue - exporting architect plans in dxf/pdf to open in Inkscape.
The most of the lines are straight - there are also arcs - but even the command has no effect on the straight ones.

So I tried now the command with just straight lines in a new file.
Same problem:

Traceback (most recent call last):
File "eneroth_purge_short_edges.py", line 64, in <module>
EnerothPurgeShortEdges().affect()
File "D:\z_Temp_nicht BackUpn\USB-Stick,20140205\Programme\Graphik,Zeichnen\inkscape-0.48.5-1-win32\inkscape\share\extensions\inkex.py", line 221, in affect
self.effect()
File "eneroth_purge_short_edges.py", line 30, in effect
self.iterate_node(node)
File "eneroth_purge_short_edges.py", line 33, in iterate_node
self.do_node(node)
File "eneroth_purge_short_edges.py", line 51, in do_node
coords[0] += prev_coords[0]
TypeError: 'NoneType' object is unsubscriptable

Would you like to test my example - that I know, to know that it must be something ?

Is there another possibility to find this lines manuell by attribute or something like this ?

Por favor faça seu login para deixar um comentário!