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
FAQ Downloads Calendar Search Mark Forums Read

User Development User developed add-ons to Flexsim

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2010
Howe Chiat Cheng Howe Chiat Cheng is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 5
Downloads: 0
Uploads: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
Howe Chiat Cheng is on a distinguished road
Question Auto Loading of .skp into Media File Folder

Hi,

I am developing a user library and have used the commands loadthreedobject() with OnModelPreOpen to pre-load a shape file. However, the command only loads .3ds and .wrl extensions and I have quite a few .skp files.

Is there a way that I can have the .skp files loaded into the media file folder upon opening of a user library?

Howe Chiat.
Reply With Quote
  #2  
Old 09-28-2010
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: 679
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

Have you tried loading a skp file? because it might be that the help file is not updated for this command and .skp file import is only available since 5.0

I think a way that always work is to have a list of very simple objects in your library, that have a skp file attached. That way they are loaded.
Reply With Quote
The Following User Says Thank You to Steven Hamoen For This Useful Post:
Howe Chiat Cheng (09-29-2010)
  #3  
Old 09-29-2010
Howe Chiat Cheng Howe Chiat Cheng is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 5
Downloads: 0
Uploads: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
Howe Chiat Cheng is on a distinguished road
Default

Hi Steven,

You are right that the simple way works. The media files are automatically loaded which I was not aware of.

Have been trying the command with skp filesin 5.0.4 and it didn't work.

Cheers.
Reply With Quote
  #4  
Old 09-29-2010
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: 1170
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

The problem is not that .skp files don't work with loadthreedobject(). The problem is that loadthreedobject() doesn't work in OnModelPreOpen at all (for 3ds, wrl, or skp). If you call it in OnModelOpen, then it works properly.

skp works fine with loadthreedobject(). I will add it to the development list to fix the documentation for that command.
Reply With Quote
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post:
mgiubilato (09-30-2010), RalfGruber (10-03-2010), Steven Hamoen (09-30-2010)
  #5  
Old 07-19-2013
Jay Chou's Avatar
Jay Chou Jay Chou is offline
Flexsim User
 
Join Date: Jul 2012
Posts: 9
Downloads: 74
Uploads: 0
Thanks: 15
Thanked 0 Times in 0 Posts
Rep Power: 0
Jay Chou is on a distinguished road
Default

Hi Phil :
can you explain why this command can't work in OnModelPreOpen ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rack Visual Tool Auto Resizing... Gi Cha Q&A 3 08-10-2010 01:11 AM
Standard Folder for models Nico Zahn Q&A 0 10-02-2009 03:13 AM
Auto Shape Factor Kris Geisberger User Development 0 05-04-2009 09:29 AM
Loading 3D-Shapes Jiri Vacek Gripes and Goodies 1 10-10-2008 05:08 AM
Auto check of variable type ranges RalfGruber Gripes and Goodies 0 06-14-2008 02:15 PM


All times are GMT -6. The time now is 03:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.