Peer-to-Peer Forum

 

Login Register    
API example for multiple flt files?
Posted: 21 April 2009 01:57 PM  
Sr. Member
RankRankRankRank
Total Posts:  118
Joined  2008-07-28

I’m asking for a sample that uses C and will work on *.flt - the examples I have reviewed in the API directory branch all seem to work on individual files.

I know Chris has posted Openflight Scripting examples that do this, but I need the “old” (cough) C flavor instead.

Many thanks!

 
Posted: 21 April 2009 02:13 PM   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  118
Joined  2008-07-28

Actually I’m guessing I won’t need this because:

if mgSetReadExtFlag == MG_TRUE then all the xrefs are processed, and..
problem solved!

 
Posted: 21 April 2009 05:06 PM   [ # 2 ]  
Moderator
RankRankRankRank
Total Posts:  386
Joined  2008-07-03

In case anyone else is interested, the easiest way to specify multiple files is to use the mgPromptDialogFile function. This will let you select multiple files as long as the MPFF_MULTISELECT option is on. This also works in OpenFlight API Scripting.  Please note that this only works in plugins or scripts running in Creator. (Access Level 4)