View Full Version : FS 5.0 Index in global tables
Nico Zahn
05-04-2010, 01:48 AM
Hi there,
in FS 5.0 there is no index for the rows and columns in the global tables. In 4.5 the index was created when you pressed 'Apply', in FS 5.0 the button is gone and so is the functionality....:eek:
There is also something wrong with selecting objects by pressing the ctrl button. I canīt add objects to a selection set with the ctrl button pressed, which is quite annoying... Am I pressing the wrong keys... ??
Jason Lightfoot
05-04-2010, 04:43 AM
Nico, I've noticed that if you have "resize and rotate" switched on, and click where the 'handles' would be drawn, then the object is not toggled selected on/off. The click is likely interpreted as if the handles were drawn already and that you're clicking on them instead. Is this the problem you are seeing? Does disabling "resize and rotate" solve the problem. If not, it could be a graphics settings issue.
As for the global table 'index' do you mean the row and column headers? I can't reproduce that as new tables in 4.52 and 5.0 have the headers already. Just clicking into the table area or another field on the GUI updates the table with the headers. Note also that the formatting of column and row datatypes in 5 is now done with a right click option - before it was in an menu under "advanced".
Nico Zahn
05-04-2010, 07:19 AM
Hi Jason,
Flexsim was put into the compatibilty graphics mode. In this mode you can not select items with mb and crtl. I put it to normal graphics mode and now I can select items with ctrl + mb.
Concerning the other issue: In 4.5, when the column and row header were empty, the were nummerised automatically when you pressed apply, which was quite usefull...
Jason Lightfoot
05-04-2010, 07:42 AM
Okay Nico, good that you solved the selection problem.
I think I see now what you mean about the global table headers which are automatically numbered/named when you create new rows and columns, but it doesn't overwrite existing headers now. If you need to do that, here's some code to execute in a script window.
treenode t=reftable("globaltablename"); //the table data node
for (int row=content(t);row>0;row--){
setname(rank(t,row),concat("Row ",numtostring(row,0,0)));
}
t=first(t); //now make t the first row
for (int col=content(t);col>0;col--){
setname(rank(t,col),concat("Col ",numtostring(col,0,0)));
}
Nico Zahn
05-04-2010, 08:18 AM
Thanks for the script.
As I almost never use the headers I expanded it to nummerize all the global tables in the model. But beware, it overwrites existing headers...
:D
treenode t_global=node("/Tools/GlobalTables",model());
treenode t;
for(int x=1;x<=content(t_global);x++)
{
t=reftable(getnodename(rank(t_global,x))); //the table data node
for (int row=content(t);row>0;row--){
setname(rank(t,row),concat("Row ",numtostring(row,0,0)));
}
t=first(t); //now make t the first row
for (int col=content(t);col>0;col--){
setname(rank(t,col),concat("Col ",numtostring(col,0,0)));
}
}
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.