fsmMLK / inkscapeDimensions

Inkscape extension to assist creating dimension annotations.
GNU General Public License v3.0
64 stars 10 forks source link

unable to draw linear dimensions #7

Open bantaj opened 4 years ago

bantaj commented 4 years ago

I installed the dimensions package with all dependencies and it worked for several days but I am now getting the following error when trying to apply linear dimensions:

ValueError: need more than 0 values to unpack

This is a screenshot of the full error:

image

fsmMLK commented 3 years ago

have you tried the newest version?

hansu commented 3 years ago

A similiar error on my installation:

/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
  File "dimensions.py", line 903, in <module>
    dimension.run()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 140, in run
    self.save_raw(self.effect())
  File "dimensions.py", line 258, in effect
    dimPosition=so.ANGdimPosition, dimDistance=so.ANGannotationDistance)
  File "dimensions.py", line 343, in drawAngDim
    if auxElemType == '3points':
UnboundLocalError: local variable 'auxElemType' referenced before assignment

Ubuntu 18 Inkscape 1.0.2 Latest version of inkscapeDimensions

fsmMLK commented 3 years ago

hansu,

for angular annotations you need a line segment with 3 or 4 points only. check if you have more.

hansu commented 3 years ago

Sorry I was in the wrong tab when coping the error message. I wanted a linear dimension. But this fails also:

Screenshot_2021-04-23_07-45-36 Screenshot_2021-04-23_07-45-49

fsmMLK commented 3 years ago

I uploaded a new version yesterday that should fix this issue. Also check if your inkscapemadeeasy is updated.

hansu commented 3 years ago

Very nice, that works. Thanks!