SketchUcation Plugin Store

 

 

Multiple ComponentDefinition with the same name

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.
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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"
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to SketchUp Bugs

Who is online

Users browsing this forum: No registered users and 1 guest