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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-03-2009
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default changing shape factor when changing 3d shape

Hi,

I'm facing a problem when I change a flowitem 3D shape in a trigger, i cannot change the 3d shape factor at the same time. Is there any command to change the shape factor?? I tried to find but fail.
  #2  
Old 09-03-2009
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

The shape factor can be found in the tree of the object in the spatial node. For example the shape factor X is in the tree under spatial of the object and the node offsetx. With the command setnodenum() the value can be set.

setnodenum(node(">spatial/offsetx",current),0.4)

All information of objects, the model, etc. can be found in the tree. The difficult bit is sometimes to find the node.

One note beside: If you like to thank someone you could also use the Thanks button in the post on the right side. This is an even more valuable Thanks. Sometimes I guess it is also good to reply if the problem is solved or not. To write which solution was working at the end is always a good information for others.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following 6 Users Say Thank You to Tom David For This Useful Post:
RalfGruber (09-03-2009)
  #3  
Old 09-03-2009
RalfGruber's Avatar
RalfGruber RalfGruber is offline
FlexSim Software Products
 
Join Date: Jul 2007
Location: Orem, UT, USA
Posts: 195
Downloads: 37
Uploads: 0
Thanks: 518
Thanked 294 Times in 124 Posts
Rep Power: 345
RalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to behold
Default

Since all spatial nodes are attributes, there is a little bit easier syntax for those:

set(offsetx(current),0.4);


You recognize that "offsetx" is printed in green as all attributes are in Flexsim. Look under help into the Attribute Hints. Although it does nothing else than Tom´s line of code

ralle
aka
Ralf


The Following 5 Users Say Thank You to RalfGruber For This Useful Post:
Tom David (09-03-2009)
  #4  
Old 09-03-2009
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

Kelvin,

If you modify the 3D shapes before you save them as wrl files then you could set things up so that you don't have to modify the shape factors in Flexsim. If you posted your files and the shape factors you are trying to modify then I could help you out with this method.

Good Luck,
Brandon
__________________
thats not normal.
The Following User Says Thank You to Brandon Peterson For This Useful Post:
KelvinHo (09-09-2009)


Thread Thread Starter Forum Replies Last Post
Auto Shape Factor Kris Geisberger User Development 0 05-04-2009 09:29 AM
Changing flow item by time KelvinHo Q&A 6 08-13-2008 07:58 AM
Changing the color of a .3ds shape made with autocad Alexandre Ouellet Q&A 5 04-30-2008 08:48 AM
Changing the height that a Transporter drops off an item to a Processor KelvinHo Q&A 1 04-10-2008 09:29 AM
Changing the direction of flowitem movement on a processor shivrash Q&A 3 04-09-2008 10:31 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.