On 19 Dec, Matthias Stiller wrote:
> Hello together,
>
> I don't know if this question is specific to the open source version of
> inventor but I hope that someone here can answer it.
>
> I wonder why there are some restrictions in setting node names. For example
> Node names beginning with numbers are not allowed and will get changed, e.g.
>
I guess Paul Strauss' answer explains why there are restrictions on the
name.
> 4superbname will be changed to _4superbname.
>
> Furthermore characters like . and others are not allowed. Is there a special
> reason for this behaviour ?
>
> The problem for me is that I am getting these names directly from CAD-Files
> and
> I need the possibility to keep those names 100%. Is it possible to change this
> behaviour (maybe by setting an define _DONT_USE_NAMECONVENTION)
Sounds like you need SoInfo :
<man SoInfo>
...
DESCRIPTION
This class defines a information node in the scene graph.
This node has no effect during traversal. It is used to
store information in the scene graph, typically for appli-
cation-specific purposes, copyright messages, or other
strings. This node differs from the SoLabel node in that
it stores its information in an SbString instead of an
SbName; the SbString is more efficient for storing long
strings that don't have to be accessed very often. Use an
SoLabel node for short strings that have to be accessed
more often.
...
--
Ole-Morten Duesund
----------------------------------------------------------------------
_______________________________________________________________________________
/\
\
\_| I used to have nightmares that the Grinch's dog would kidnap me and make me
|
| dress up in a halter-top and hot pants and listen to Burl Ives records.
|
| -- Robin, "Anything But Love", 12/18/91.
|
|
__________________________________________________________________________|_
\_/____________________________________________________________________________/
|