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

Flexsim users could benefit from this feature 10 100.00%
No thanks 0 0%
Voters: 10. You may not vote on this poll

  #1  
Old 05-04-2009
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default Auto Shape Factor

No longer should you worry about how your wrl shape was created.
The attached user library adds an "Auto" button to the General tab of Flexsim object properties for automatically fitting a wrl 3D shape inside the yellow bounding box of a Flexsim object. After browsing/opening your custom wrl 3D shape file to represent the Flexsim object, click the Auto button to open a small dialog to specify the scale that the 3D shape was drawn in relative to Flexsim's grid unit. Then press the "Auto Shape Factor" button.

Scale = shape units / Flexsim model grid units
examples:
1 = shape drawn in meters (or the same units as Flexsim grid)
0.001 = shape drawn in millimeters
0.0254 = shape drawn in inches
1/12 = shape drawn in inches, and Flexsim grid represents feet

Unfortunately this only works with VRML files (.wrl) because they are text based. I have noticed that Caligari's trueSpace sometimes uses MatrixTransform{} that I did not address, you should be able to open the wrl with notepad and place a # at the start of all lines of the MatrixTransform to comment then out. Please reply to this post if you have a wrl file that fools the Auto Shape Factor.

I believe this could be especially handy for new users and importing custom shapes for flowitems. There are times when you don't want the shape to fit inside the bounding box, but when you do, this is your "EASY" button.
Attached Files
File Type: zip AutoShapeFactor.zip (6.8 KB, 335 views)
The Following 11 Users Say Thank You to Kris Geisberger For This Useful Post:
zhang xin (08-06-2009)


Thread Thread Starter Forum Replies Last Post
Getting an imported shape into the yellow selection box Brenton King Tips and Tricks 23 07-24-2009 08:44 PM
Edit Shape Factors using mouse Kris Geisberger User Development 0 04-22-2009 12:19 PM
Auto check of variable type ranges RalfGruber Gripes and Goodies 0 06-14-2008 02:15 PM
change 3D shape of a packed flow item KelvinHo Q&A 2 02-27-2008 09:41 PM
Adjusting 3d shape of a crane Maurits Brandt Tips and Tricks 3 09-14-2007 12:25 AM


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.