Search found 39 matches

by draftman
Sun May 22, 2016 2:52 am
Forum: Discuss Software Issues
Topic: Measure tool crash
Replies: 6
Views: 2848

Measure tool crash

My measure tool sometimes crashes inkscape. It also leaves little lines on my drawings
Has anyone else had this problem ?
I'm running windows 7, inkscape .91 64 bit
by draftman
Wed Oct 21, 2015 10:00 am
Forum: Programming
Topic: Bugs, Issues, and Fixes...Oh My!
Replies: 17
Views: 8733

Re: Bugs, Issues, and Fixes...Oh My!

Yes, when I make any changes in Document Properties all extensions run slower. If I run extensions in default mode (all settings the same as when first down loaded) extensions are almost instantaneous. If I make any changes they take 2 to 3 seconds to work. I'm running windows 7, Inkscape .91, 64 bi...
by draftman
Tue Oct 20, 2015 6:45 am
Forum: Programming
Topic: Get attribute of the selected item
Replies: 1
Views: 1887

Re: Get attribute of the selected item

Not sure what your trying to do, but this might help.
use an error message.

Code: Select all

               
                        out_msg = '\t' + str(new attribute) + '\n\t next line of text'
                        inkex.errormsg(out_msg)
by draftman
Sat Oct 17, 2015 3:29 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

Thanks, suv.
That well work.
by draftman
Thu Oct 15, 2015 10:11 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

It works! But, I just realized that if you duplicate an object you get a whole new the id. Noticed that a duplicated object keeps its original label, and was wondering if is possible to use inkscape:label. If so, does anyone know how to get a selected items label? Here's a sample of what I'm trying ...
by draftman
Mon Oct 12, 2015 9:17 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

Thanks, for the examples.
I defiantly have a better idea of what I'm doing now.
Time to get to work, and see if I can fit all these pieces together!
by draftman
Sun Oct 11, 2015 2:10 pm
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

I've been working on some extensions for architectural plans. The one I need this bit of code for, is so two extensions can work together. The first extension creates an object and gives it a coded id. Then the second extension can get selected object, read the id, and direct it to an appropriate ac...
by draftman
Sun Oct 11, 2015 5:21 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

Thanks, Moini.
Yep, that's the ticket. It was sitting in front of my face the whole time.

for id, node in self.selected.iteritems():
if id == bla:
#do something

I had tried...

if id in self.selected.iteritems() == bla:

and it did not work.
Shouldn't this work too?
by draftman
Sat Oct 10, 2015 8:25 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Re: Retrieve selected objects id ?

Thanks, brynn. I did find something in Python modules for extensions, self.doc_ids ! The problem is it returns all objects/paths ids in a given layer. The good thing is it returns them all in a list. Not sure how to limit the list to self selected objects, but at least I have a starting point. If an...
by draftman
Fri Oct 09, 2015 10:58 am
Forum: Programming
Topic: Retrieve selected objects id ?
Replies: 11
Views: 6563

Retrieve selected objects id ?

I'm making a python extension for inkscape .91, and need to Retrieve a selected objects id.
I can't find an example of this, and don't know enough to figure it out.
Any help would be appreciated.
Thanks.
by draftman
Tue Feb 03, 2015 1:11 pm
Forum: Programming
Topic: Extension rotate text help needed
Replies: 7
Views: 3376

Re: Extension rotate text help needed

Live preview works every time for me.
Tried everything I could think of to get it to crash, but it just kept on working.
Oh Boy! My first bug.
Unfortunately live preview is pretty useful in this extension.
by draftman
Sun Feb 01, 2015 3:04 pm
Forum: Programming
Topic: Extension rotate text help needed
Replies: 7
Views: 3376

Re: Extension rotate text help needed

Here's the modified code. This extension creates dimension lines in feet & inches for architectural drawings. This is my first attempt at programming, with the exception of a little bit of Html and Js. So, if you see any mistakes please let me know. I should also mention that I'm using Windows 7...
by draftman
Mon Jan 26, 2015 7:35 am
Forum: Programming
Topic: Extension rotate text help needed
Replies: 7
Views: 3376

Re: Extension rotate text help needed

Thanks , Ragstian
That was exactly what I was looking for, and thank you for the detailed explanations (really helped).
I will post my extension as soon as I finish it.
Is there a category I should post it in, or just post it here?
by draftman
Sun Jan 25, 2015 6:51 am
Forum: Programming
Topic: Extension rotate text help needed
Replies: 7
Views: 3376

Extension rotate text help needed

I'm modifying the number nodes extension in inkscape .48.5 and, I need to rotate the text 90 deg. Anyone know the code for this? Here is the text part of the code. self.addText( self.numGroup, params[-2] + ( inkex.unittouu(self.options.dotsize) / 2 ), params[-1] - ( inkex.unittouu(self.options.dotsi...

Go to advanced search