Open and Import Femap with NX Nastran BDF file from Matlab
13 views (last 30 days)
Show older comments
Hi,
I think the title summarizes it. The problem is a bit more complex then this but I'm going step by step and the first step is this.
1. From Matlab launch Femap with NX Nastran
2. Open and import a BDF file
Eventually I will also have to do this afterwords:
3. Femap runs and analysis the BDF
4. Outputs a TXT type file
5. Matlab reads/accesses this TXT file
This is basically the algorithm but I'm having a hard time putting it into paper because I never worked with app functions.
Can anyone help? I saw a Catia topic which was somehow similar but couldn't adapt it to my problem.
Thanks
0 Comments
Answers (2)
Image Analyst
on 6 Jul 2014
For (1), try system().
For (2), it depends on the format. You might be able to use dlmread(), csvread(), fgetl(), textscan(), fread(), importdata(), or readtable() depending on the format of the data. You can attach a file with the paperclip if you can't get any of those to work with it.
For (4), use fopen() then fprintf(), then fclose().
For (5), same answer as (2).
0 Comments
Valter
on 6 Jul 2014
2 Comments
Image Analyst
on 6 Jul 2014
This should have been a comment, not an "Answer" to your original question. Anyway, I thought you meant to import into MATLAB. I'm not familiar with your Femap program at all - I've never heard of Femap or BDF format files. Sorry but I can't help on that program. Perhaps you can use ActiveX or the Java robot class to send commands to the program if you need to control it from MATLAB.
See Also
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!