You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?
In the future maybe collapsible tabs may help but not sure.
Thanks
You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?
In the future maybe collapsible tabs may help but not sure.
Thanks
I was shocked at this news...hope everyone is safe.
[pre:m1n0fdbx]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.2
Date:: 9/14/2013
Cost:: Free[/pre:m1n0fdbx]
Rename by Layer v1.0.2 is now available for download.
%(#909090)[Thanks to the people that contributed ideas to make the plugin better!
]
@jql said:
The only option the plugin lacks right now could be "renaming selection only".
Will try to add this feature for next update.
@jql said:
In other words your dialog would have a logo that would say "My name is: rename by GROUP".
Good idea indeed will see if I can work on it. 
@jql said:
An image that crosses my mind would be Swiss Army Kname...
Love it!

@jql said:
However if one could somehow choose to rename/clear only instances names or definition names the job would be handled much easily.
Will see how that can be a feature for next update.
Note: By the way thanks for making me laugh!

@jql said:
I wouldn't know where to insert the code you have there...
To test code I recommend using [as] Ruby Code Editor - http://extensions.sketchup.com/en/content/ruby-code-editor ... but there are other good ones as well.
@jql said:
I'm curious though: are you considering the idea of making a new plugin that would be based on groups instead of layers?
I am having difficulties in picturing exactly how will it work...can you give me an example to see if I understand better?
[pre:1trtoyqg]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.1
Date:: 9/13/2013
Cost:: Free[/pre:1trtoyqg]
Rename by Layer v1.0.1 is now available for download.
@jql said:
however, I would somehow expect that components and groups on layer 0 that were nested inside a component on layer X would be renamed after layer X.
Here is little test code that will take the subgroups that are on layer0 and name them with the parent layer name.
model = Sketchup.active_model
ents = model.active_entities
groups = ents.grep(Sketchup;;Group)
groups.each do |group|
gg = group.entities.grep(Sketchup;;Group)
gg.each do |g|
g.name = group.layer.name
end
end
Will see how this feature can be integrated in future update to existing code. Since other requests are already done maybe will go ahead and release them first and then add what we just mentioned. Thanks for suggestions! 
@matt.gordon320 said:
hanks Renderiza! Great work as always...I do have a possible request if there think there'd be a place for it. I usually precede my component names with symbols (like !, @, #, $, %, ^, etc) so that they show up in the order I want in the component menu. It's a little odd to get used to, but it lets me organize my components by importance and amount of detail. Would there be a possibility of appending a customizable section in front of the renaming the script does? I can give an example of a model if you like, of course.
Thanks!
I am adding the "prefix" & "suffix" feature for the numbers. For example:
prefix = 001 - layername
suffix = layername - 001
Will see how I can integrate costume prefix & suffix with a text input.
If you want to send example that will help me understand better it will be appreciated indeed. Thanks for suggestions!
Note: I have also added the filter for Active Layer and will post new update soon.
This is very good idea that cold potentially increase working speed.
Here is a video of a plugin with interesting concept as welll...
TIG developed TextureTools v1.5 ... http://sketchucation.com/forums/viewtopic.php?p=329765#p329765
Feature that will work with arrow keys:
@jql said:
Could the plugin be adapted to also have a filter for the active layer?
That would be really useful indeed so let me see if I can add it on next update.
@bagatelo said:
You could change the code to rename the definition name?
With the code below the definition name is created.
model = Sketchup.active_model
ents = model.active_entities
groups = ents.grep(Sketchup;;Group)
components = ents.grep(Sketchup;;ComponentInstance)
num = 0
groups.each do |group|
group.name = nil.to_s
end
groups.each do |group|
if group.name == nil.to_s
num=0
end
groups.each do |g|
if group.layer.name == g.layer.name
if g.name == nil.to_s
num+=1
bytenum = num.to_s.length
if bytenum == 1
zeros = "00"
end
if bytenum == 2
zeros = "0"
end
if bytenum >= 3
zeros = nil.to_s
end
g.name = group.layer.name.concat(" - #{zeros}#{num}")
end
end
end
end
components.each do |component|
component.name = nil.to_s
end
components.each do |component|
if component.name == nil.to_s
num=0
end
components.each do |c|
if component.layer.name == c.layer.name
if c.name == nil.to_s
num+=1
bytenum = num.to_s.length
if bytenum == 1
zeros = "00"
end
if bytenum == 2
zeros = "0"
end
if bytenum >= 3
zeros = nil.to_s
end
#c.name = component.layer.name.concat(" - #{zeros}#{num}")
c.definition.name = component.layer.name.concat(" - #{zeros}#{num}")
end
end
end
end
@bagatelo said:
The reason I asked this plugin is because I'm trying to use the plugin "Solid Quantify by TAK2HATA". It's a wonderful plugin, and I need something to easily modify the names of components. Note the attachment files.
Will check it out indeed.
I will eventually make an extension plugin with web-dialog that offers some options for the user. For now the code bellow displays the numbers like you suggested.
model = Sketchup.active_model
ents = model.active_entities
groups = ents.grep(Sketchup;;Group)
components = ents.grep(Sketchup;;ComponentInstance)
num = 0
groups.each do |group|
group.name = nil.to_s
end
groups.each do |group|
if group.name == nil.to_s
num=0
end
groups.each do |g|
if group.layer.name == g.layer.name
if g.name == nil.to_s
num+=1
bytenum = num.to_s.length
if bytenum == 1
zeros = "00"
end
if bytenum == 2
zeros = "0"
end
if bytenum >= 3
zeros = nil.to_s
end
g.name = group.layer.name.concat(" - #{zeros}#{num}")
end
end
end
end
components.each do |component|
component.name = nil.to_s
end
components.each do |component|
if component.name == nil.to_s
num=0
end
components.each do |c|
if component.layer.name == c.layer.name
if c.name == nil.to_s
num+=1
bytenum = num.to_s.length
if bytenum == 1
zeros = "00"
end
if bytenum == 2
zeros = "0"
end
if bytenum >= 3
zeros = nil.to_s
end
c.name = component.layer.name.concat(" - #{zeros}#{num}")
end
end
end
end
Will keep you posted on further development...Cheers! 
@bagatelo said:
And I also like to know if we can do it in the whole model or only visible layers....
Right now it does it to all layer no matter if they are visible or not. But an option for only renaming visible layers could be done.
@bagatelo said:
Look what I have when I try to execute the last code...
Cleared the editor
Running the code...
Done. Ruby says: Run aborted. Error: undefined method βbytesizeβ for "1":String
This was an error on my part by using bytesizeβ method which I will change to 'length' so it will work. Will try to update all the code example above to eliminate that issue.
I also published the plugin as an extension on Plugin Store as 'Rename by Layer' here is the link... http://sketchucation.com/resources/pluginstore?pln=RND_Renamer_v1.0.0
Also I made another topic here for future updates and stuff... http://sketchucation.com/forums/viewtopic.php?p=490834#p490834
Any feedback about the plugin will be great so I know that to fix on next update...Cheers! 
@dedmin said:
Great plugin! It would be useful to have "append layer name as prefix/suffix" to the component's name.
Great idea! I saw this just about when I published the first version to Plugin Store but maybe for next update your suggestion will be added.
Here are some links for the plugin;
SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins
(sketchucation.com)
http://sketchucation.com/forums/viewtopic.php?f=323&t=54165
Note: Something important that I noticed about definition names is that if you have 2 entities which are component instances they can't have different definition names.
For example;
Will not be named like below;
Layer: Door
component instance#1 definition name = Door - 001
component instance#2 definition name = Door - 002
component instance#3 definition name = Door - 003
component instance#4 definition name = Door - 004
They will be name like this;
component instance#1 definition name = Door - 004
component instance#2 definition name = Door - 004
component instance#3 definition name = Door - 004
component instance#4 definition name = Door - 004
Remember that its a rule that they must be the same. The numbers for definition name will only serve to display the total amount.
Cheers! 
[pre:j1eenfiw]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.3
Date:: 9/17/2013
Cost:: Free[/pre:j1eenfiw]
Rename by Layer
%(#909090)[Groups and Components are renamed with the layer name they are on or name specified by user with the option to add number that will increase per entity.
The idea for this plugin is by Bagatelo which he requested on this forum topic... http://sketchucation.com/forums/viewtopic.php?p=490389#p490389]
%(#909090)[Features
Menus & Toolbars

Available at
sketchUcation
pluginStore
click here
______________________________________________________________________
Extension Warehouse
click here
Note: If the latest version is not yet available at Extension Warehouse that means it is still awaiting to be approved by the quality assurance team to make sure extension meets the technical and security requirements.
______________________________________________________________________
Web-Dialog

______________________________________________________________________
Recommended Plugins :
Layers Panelby jiminy-billy-bob- Its similar to existing 'Layer Window' but adds the ability to group layers, sort them, hide/collapse groups, etc..
@bagatelo said:
[Re] name
I think you could create something that rename numerous things, such as materials, components, Layers, etc ...
"Central [Re] name"
viewtopic.php?f=323&t=47234
viewtopic.php?f=323&t=53329
Really like that idea and the name "[Re]Name" is very fitting. But since that idea is more ambitious its advised to work our way there little by little.
Maybe starting with renaming groups & components by layer for now and making that into an extension by itself with a different name than "[Re]Name".
We can name the extension "Rename by Layer". Here is a Logo for the plugin...Any feedback is welcome.

I started working on making the extension with web-dialog and plan to keep you posted on further progress...cheers!
Any suggestions for what should be the name of the plugin?
Below are potential names...