inkscapeDimensions icon indicating copy to clipboard operation
inkscapeDimensions copied to clipboard

unable to draw linear dimensions

Open bantaj opened this issue 5 years ago • 6 comments

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

bantaj avatar Jan 24 '20 16:01 bantaj

have you tried the newest version?

fsmMLK avatar Jan 13 '21 20:01 fsmMLK

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

hansu avatar Apr 18 '21 08:04 hansu

hansu,

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

fsmMLK avatar Apr 22 '21 22:04 fsmMLK

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

hansu avatar Apr 23 '21 05:04 hansu

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

fsmMLK avatar Apr 23 '21 07:04 fsmMLK

Very nice, that works. Thanks!

hansu avatar Apr 23 '21 09:04 hansu