Why "0001test" is not a valid string?

Why "0001test" is not a valid string?

Cris-Ideas
Advisor Advisor
355 Views
2 Replies
Message 1 of 3

Why "0001test" is not a valid string?

Cris-Ideas
Advisor
Advisor

Hi

I have run on to something I do not understand.

This line of code works:

 

attr = occAttributeSet.Add("_0001test", ValueTypeEnum.kStringType, "test")

 

 

but when I replace string for attribute name with "0001test" that is is rising an exception.

So this does not work:

 

attr = occAttributeSet.Add("0001test", ValueTypeEnum.kStringType, "test")

Why 0001test is not a valid string?

 

Cris.

 

Cris,
https://simply.engineering
0 Likes
356 Views
2 Replies
Replies (2)
Message 2 of 3

JaneFan
Autodesk
Autodesk

Hi @Cris-Ideas

 

AttributeSets.Add() seems don't accept attributeset name starting with a number for current behavior. 




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 3

Cris-Ideas
Advisor
Advisor

Yes,

That's the answer I got form customer support.

 

It would be much easier if this information was just given in help.

 

Perhaps you could contact people responsible for help so they just add this?

 

Cris

Cris,
https://simply.engineering
0 Likes