Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: hayabusa on March 06, 2018, 07:29:38 AM

Title: Display object's ID or name
Post by: hayabusa on March 06, 2018, 07:29:38 AM
Hi everybody,

I'm looking for a solution to easily display, directly on my document, the ID's, or the name, or another property, of all the objects to be able to recognise them easily.

Is there a simple way to do this?

Thanks a lot
Title: Re: Display object's ID or name
Post by: Moini on March 06, 2018, 04:51:12 PM
No. But you can open the 'objects' dialog (Object > Objects) to see a list of the objects in your drawing, and to select them there, too. And when you select any object, you can find a description of it in the status bar at the bottom.
Title: Re: Display object's ID or name
Post by: brynn on March 07, 2018, 01:02:16 PM
Welcome to the forum!

It sounds like something that could be done with an extension, if you know about writing the right code, which I think is Python.

Meanwhile, I would agree about using the Objects dialog.  That should work for you....unless you need to open the image with a different program.  Like for example, you saved as PDF and opened with PDF reader, you wouldn't know which object is which there.
Title: Re: Display object's ID or name
Post by: hayabusa on March 09, 2018, 02:39:08 AM
Hi,

Thanks for your answers !
Unfortunatly i don't know Python ;-/
I would create an scaled implantation description for an exposition, with a lot of exposant. And be able to see the names directly on the plan to identify them easily.
I know that inkscape is not the best tool to do that, but i cannot find a free and easy to use one :-(

I will find another solution, thanks for your answer ...
Title: Re: Display object's ID or name
Post by: Moini on March 09, 2018, 05:39:29 PM
Mmh. Are we talking about labels being added during editing, to make editing easier - or are you maybe looking for an option to label items in your drawing that can be displayed in the exposition?
Title: Re: Display object's ID or name
Post by: brynn on March 10, 2018, 11:18:11 AM
There's always the option to create specific labels, just using Text Tool, and perhaps an ellipse or rectangle - something like that.  But it sounds like you need something approaching automatic, to create them.

Again, an extension....or it wouldn't have to be an extension.  The only reason for making an extension would be so that other users can benefit.  But just for personal use, a script might work.  Or else Inkscape has commandline ability.  It seems like I've heard of using the commandline for something like this.

Although I'm a little lost with "implantation", "exposition", and "exposant".  So I might be going down the wrong road.  (well, I could give a definition for all 3 words, but not sure about a situation of using them all together) ("science" is as close as I can get, haha)
Title: Re: Display object's ID or name
Post by: Moini on March 10, 2018, 04:11:47 PM
I have a feeling that the user's native language is French. But I could be wrong. hayabusa, can you help us a bit?
Title: Re: Display object's ID or name
Post by: brynn on March 10, 2018, 05:13:37 PM
(Yes, I was thinking perhaps a translation is slightly off with those words.  But the rest of the English seems perfect!  So I was leaning towards just some professional lingo.  We'll see :)  Perhaps Inkscape can be the solution, after all?)
Title: Re: Display object's ID or name
Post by: hayabusa on March 20, 2018, 04:48:38 AM
Hi,

Thank you to try to help me :-)
Indeed im a native french speaker.

The correct sentence should have been
"I would create an scaled site map for an exhibition, with a lot of exhibitors. And be able to see the names directly on the plan to identify them easily."

I never created a inkscape extension, and i'm afraid not to have the time now -(
Title: Re: Display object's ID or name
Post by: Moini on March 20, 2018, 07:35:11 AM
Bonjour :)

The easiest way to do this would be to just type the text, then group that with the booths.
The second easiest way would be to use the booth boxes as flowed text frames.

Is there a reason why you cannot do it like this, by entering the names manually?

https://framadrive.org/s/Kp9J8WAbioH8jwt
Title: Re: Display object's ID or name
Post by: Moini on March 20, 2018, 07:38:54 AM
Hint: the 'magic' to access objects in a group is double-click on the group. To leave it, double-click on empty space.
Title: Re: Display object's ID or name
Post by: Moini on March 20, 2018, 07:40:02 AM
(if you can make a drawing of the 'ideal' look, we'll be able to help more)
Title: Re: Display object's ID or name
Post by: brynn on March 20, 2018, 09:00:14 AM
Ooohh!  Now I understand much better, so now I don't think there's any need for a new extension.  I was  in a whole other world before, haha.

Now it sounds like you just need the Text tool, such as in Moini's examples.
Title: Re: Display object's ID or name
Post by: hayabusa on March 23, 2018, 03:03:38 AM
eh eh indeed it is a good simple solution ...

The problem with this solution is the size of the text : is has to be fitted to the size of the frame.
But all the frames on the map or really small compared to A4 or A3 format (and at the end it should be readable on a printed version^^ )

But I know than Inkscape is not the best tool to do that.

Last year I got a nice result (see below) but I cannot use that software anymore (licence problems)... and it was a boring software

Thank you for all your advices :D
Title: Re: Display object's ID or name
Post by: Moini on March 23, 2018, 07:14:51 AM
I feel a bit silly for asking this, sorry: have you found the settings for font size? You can adjust the sizes freely, and place your text wherever you want. What do I overlook?

Looks like a gardening fair to me - I'd love to visit :)

(goes and plants onions...)