ATTENTIONThis 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 |
|
Downloads |
User Development User developed add-ons to Flexsim |
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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. |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Howe Chiat Cheng (09-29-2010) |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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. |
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Steven Hamoen (09-30-2010) |
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 |