# Bug within Attribute Name in Rhino6

**URL:** <https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721>\
**Category:** Rhino Developer\
**Tags:** rhinocommon\
**Created:** [March 22, 2019, 9:33am UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721 "2019-03-22T09:33:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mi\_sprinzl](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mi\_sprinzl](https://discourse.mcneel.com/u/mi_sprinzl)\
**Post date:** [March 22, 2019, 9:33am UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/1 "2019-03-22T09:33:18Z")

</div>

Hello,  
maybe someone knows a work around. I had no problems with this snipped of code in Rhino5 but in Rhino6 it makes some strange mistakes:

Rhino.DocObjects.ObjectAttributes Attributes = new Rhino.DocObjects.ObjectAttributes();  
Attributes.Name = “[DEF]Area[NAME]” + Command;  
var guid = doc.Objects.AddCurve(Rec.ToNurbsCurve(), Attributes);

In Rhino5 the Name is =\> [DEF]Area[NAME]Command =\> Super Duper OK  
In Rhino6 the Name is =\> ^[DEF]Area[NAME]Command =\> Error

What going on in Rhino6. I never switched because of performance issues with Rhino6 but some clients want to move to Rhino6. This is a serious bug because lots of projects are based on Naming convention.

cheers  
Michael

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 22, 2019, 10:29am UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/2 "2019-03-22T10:29:09Z")

</div>

Thanks, I have logged the report as [https://mcneel.myjetbrains.com/youtrack/issue/RH-51585](https://mcneel.myjetbrains.com/youtrack/issue/RH-51585)

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 23, 2019, 2:09pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/4 "2019-03-23T14:09:03Z")

</div>

> [@mi\_sprinzl](#):
>
> maybe someone knows a work around.

Hi Michael,

using the example @nathanletwory posted on YouTrack, it prints `False` for the equality check if the name is assigned like this:

```python
obattr.Name = "[DEF]Area[NAME]Command"

```

Result:

> [DEF]Area[NAME]Command  
> \[1\]Area[NAME]Command  
> False

I can make it print `True` if i force some extra quotes when assigning the name like this:

```python
obattr.Name = chr(34) + "[DEF]Area[NAME]Command" + chr(34)

```

Result:

> “[DEF]Area[NAME]Command”  
> “[DEF]Area[NAME]Command”  
> True

\_  
c.

* * *

1. DEF

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 23, 2019, 2:49pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/5 "2019-03-23T14:49:10Z")

</div>

> [@clement](#):
>
> “[DEF]Area[NAME]Command”  
> “[DEF]Area[NAME]Command”

Note that now the name isn’t `[DEF]Area[NAME]Command`, but `"[DEF]Area[NAME]Command"`. It may look to the eye similar, but they are hugely different. Granted, the `^`-character isn’t in front of it though.

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 23, 2019, 4:01pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/6 "2019-03-23T16:01:42Z")

</div>

Hi @nathanletwory,

i just found that Rhino 6 object [naming conventions](https://docs.mcneel.com/rhino/6/help/en-us/index.htm#information/namingconventions.htm) does not allow to assign names which begin with these symbols: `() [] {}`

@mi_sprinzl, maybe you can just add any letter in front as a workaround 😉

\_  
c.

---

<div class="post-metadata">

**Author:** ![mi\_sprinzl](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mi\_sprinzl](https://discourse.mcneel.com/u/mi_sprinzl)\
**Post date:** [March 24, 2019, 3:24pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/7 "2019-03-24T15:24:55Z")

</div>

Thanks I think this will help.

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [March 24, 2019, 5:31pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/8 "2019-03-24T17:31:19Z")

</div>

> [@mi\_sprinzl](#):
>
> I never switched because of performance issues with Rhino6 but some clients want to move to Rhino6.

What performance issues are these? V6 in general should have better performance characteristics than V5.

---

<div class="post-metadata">

**Author:** ![mi\_sprinzl](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mi\_sprinzl](https://discourse.mcneel.com/u/mi_sprinzl)\
**Post date:** [March 24, 2019, 7:09pm UTC](https://discourse.mcneel.com/t/bug-within-attribute-name-in-rhino6/80721/9 "2019-03-24T19:09:17Z")

</div>

Ok It is just a feeling. But i think for example Grasshopper seems slower and also the gui in Rhino has some nice visuals which are not Helping the Performance. This is not only a think i feel but also some others. I think the custom.objects should get priority. I think its moving away from the technical perspective towards design centric tool.
