AttachedGHS Duplicate Shape Names

Bit of a trap found in R5 (so not sure how much traction it will get). GHS data shapes are automatically named and in this case the newest one was named the same as an older one. This has caused me dramas in downstream applications.

image

More of a heads-up to anyone searching the forum and wondering why two tanks have the same geometry. No idea how it happened, I created the last tank the same way I always have, but the original s28 was probably created in R6, whereas I’m using R5.

Nick

Hi Nick - if you stumble on the steps needed to reproduce this, please shout.

It looks like Importing may do this.

-Pascal

There’s almost no way I’ll be able to reproduce this. Been using Rhino for this purpose for ~15 years and never seen it before. This is a much more complicated stability model than I’ve ever worked with before, with many data sources and will unlikely be tweaking it much from now on.

I’m not sure it is an import issue. Upon import of GHS file into Rhino it dealt with the identical names correctly, but the names were still identical. Upon import into the stability program it only recongnised one of the names and associated shapes, the other was ignored (which is fair enough, why would two shapes be named the same, most software would disallow it).

There were no leading of trailing spaces in the names. Perhaps there was some hidden formatting that R6 produces that R5 identified as a difference between the same names, but other software ignores.

It is such risky data that is being produced by AttachGHS that I would strongly suggest a quick look through the shape naming code by the devs. I realise this is a needle-in-haystack kind of request, but it is important to have confidence in the GHS data being exported. I only picked up the problem by chance.

I’ll see if I can minimise the GHS file to just those shapes so you can look into it.

regards,
Nick

duplicate shape names.3dm (79.7 KB)

rename to .gf file format
duplicate shape names.txt (7.4 KB)