ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > User Development
Downloads

User Development User developed add-ons to Flexsim

  #1  
Old 07-29-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default Table Commands Library

All,

Here is a userlibrary that will automatically load the commands listed below. All of the commands are commented as usual and all of the commands have error checking that will display the error message in the output console. Each of the commands is also capable of accepting a treenode, number, or string for the table value.

Commands:
addtablerow
deletetablerow
movetablerow
swaptablerows
resetrowtitles
addtablecol
deletetablecol
movetablecol
swaptablecol
resetcoltitles

Let me know what you think,
Brandon
Attached Files
File Type: zip Table Commands Update.zip (6.9 KB, 345 views)
__________________
thats not normal.

Last edited by Brandon Peterson; 09-25-2008 at 09:26 AM.
The Following 12 Users Say Thank You to Brandon Peterson For This Useful Post:
Yasemin Vatandas (08-13-2008)
  #2  
Old 07-29-2008
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 225
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

This is a nice library which provided many handy commands for table operations. Why not put them into the Flexsim next release version?
__________________
Best,
Alan
  #3  
Old 08-13-2008
Dirk-Jan Dirk-Jan is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Utrecht, Netherlands
Posts: 43
Downloads: 35
Uploads: 0
Thanks: 11
Thanked 22 Times in 16 Posts
Rep Power: 170
Dirk-Jan will become famous soon enough
Default

I agree with Alan. Would be a nice addition to the commands.

regards,
DJ
  #4  
Old 08-13-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Yes, I agree also and like to thank Brandon for the good job ...
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #5  
Old 09-25-2008
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Brandon,

Nice library!

But now I have to spoil the party a bit. I used the deletetablerow command and you forgot to update the row variable. So after I delete a row of say a table of 5 rows, and I used gettablerows I still get 5 instead of the expected 4.

The same for the deletetablecol.

When I looked at the code I also found that for the deletetablerows, you check for max nr of cols instead of rows. So better fix that too before they are added to standard flexsim

Steven
The Following User Says Thank You to Steven Hamoen For This Useful Post:
Brandon Peterson (09-25-2008)
  #6  
Old 09-25-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

Steven,

Thanks for finding the problems with the commands. I updated the two commands that had problems and have updated the library here and in the first post.

Brandon
Attached Files
File Type: zip Table Commands Update.zip (6.9 KB, 331 views)
__________________
thats not normal.


Thread Thread Starter Forum Replies Last Post
Articulated Robot Library Kris Geisberger User Development 43 12-21-2010 11:17 PM
Need explanation of Flexsim drawing commands AlanZhang Q&A 2 04-17-2008 10:24 AM
What about the file read commands? AlanZhang Gripes and Goodies 0 02-08-2008 05:17 PM
About CT library... syseo Container Terminal (CT) Library 0 11-17-2007 07:41 AM
New custom commands in Downloads link Cliff King Q&A 0 09-24-2007 05:46 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.