Multiple ComponentDefinition with the same name

Found a bug in SketchUp? Report it here

Multiple ComponentDefinition with the same name

Postby thomthom » Wed May 05, 2010 1:10 pm

A user at the ASGVis forum just reported an bug which turned out to an obscure SU bug:
Multiple ComponentDefinitions with the same name.

How to reproduce:
Search for "TV" on Google Warehouse
Search.png


Add the top left TV
Console list of all definition names:
Output01.png


Then add the second TV, right to the first one in the search results.
Console list of all definition names:
Output02.png


EntityInfo01.png


EntityInfo02.png


One would expect SU to rename the latest TV added to TV#1 - but alas.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Multiple ComponentDefinition with the same name

Postby thomthom » Wed May 05, 2010 1:42 pm

FYI: a little patching utility to fix the definition names: viewtopic.php?f=323&t=28095
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Multiple ComponentDefinition with the same name

Postby Jim » Wed May 05, 2010 1:44 pm

Are you certain there isn't a space in one of the strings?
"TV "
"TV"
0
Hi

Jim 
Global Moderator
 

Re: Multiple ComponentDefinition with the same name

Postby Jim » Wed May 05, 2010 1:48 pm

Jim wrote:Are you certain there isn't a space in one of the strings?


Now I see the download. An extra space is not the case.
0
Hi

Jim 
Global Moderator
 

Re: Multiple ComponentDefinition with the same name

Postby thomthom » Wed May 05, 2010 1:59 pm

And VfSU renders incorrectly due to this. One of the instances are replaced by the incorrect definition.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Multiple ComponentDefinition with the same name

Postby thomthom » Thu May 06, 2010 11:59 am

I just noticed that in another model I have, where I had imported geometry from a DWG, multiple definitions had the same name.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to SketchUp Bug Reporting

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: