View Single Post
  #2  
Old 03-27-2012
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1169
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

With a few exceptions, object and node names in Flexsim should follow C++ naming rules:
"A valid identifier is a sequence of one or more letters, digits or underscore characters (_). Neither spaces nor punctuation marks or symbols can be part of an identifier. Only letters, digits and single underscore characters are valid. In addition, variable identifiers always have to begin with a letter. In no case can they begin with a digit." (http://www.cplusplus.com/doc/tutorial/variables/)

Flexsim object and node names are frequently used in paths, which can take names or ranks as valid inputs:

node("/Tools/MTBFMTTR/6",model()) will point to the 6th node in the MTBFMTTR node of the Tools folder.

If you name the first MTBFMTTR object as "6542", then a path to that object will be looking for the object at rank 6542, which probably isn't the correct object.

Also, you may make variables out of object names, and variables cannot start with a number.


Question:
Quote:
Originally Posted by Jens Mühlheimer View Post
Is there a fix or explanation for this?
Answer:

Quote:
Originally Posted by Jens Mühlheimer View Post
When I rename the table so it starts with a letter, everything is fine.
Reply With Quote
The Following User Says Thank You to Phil BoBo For This Useful Post:
Jens Mühlheimer (03-27-2012)