×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to select correct Femap instance using API

How to select correct Femap instance using API

How to select correct Femap instance using API

(OP)
Hello,
is it possible to choose Femap instance (process) from many already running?
I'd like to get list of opened Femap instances and put them to e.g combobox.

Tadeusz

RE: How to select correct Femap instance using API

Hi,
Do you mean different models?

Here's what the API can do: for one FEMAP instance with multiple models/windows in it, you can retrieve all opened models. Check out Help > 3.16.1.6 feAppGetAllModels.
Then you can retrieve the models' names, put them in a droplist box so the user can select one, and go to it using feAppSetModel for example.

What FEMAP can't do (well not that I know of) is switch between opened instances of FEMAP. If you open FEMAP twice for ex, I dont think you can switch between them.

AP

RE: How to select correct Femap instance using API

(OP)
Thanks for your reply.
Unfortunetely, the second option is what I need (switch between opened instances of FEMAP).
I work with VB.NET and I thought it is still possible with some system functions. Maybe running object table (ROT)? But I have no knowledge on this topic.

Tadeusz

RE: How to select correct Femap instance using API

Hello Tadeusz,


Femap uses COM-object technology for API programming. And it has limitation - it is possible to connect only to one instance (which was started first).
What is possible to do - check if more than one instance of Femap is running and give a warning.
We get list of running processes and check if name contains "Femap". If you need some example let me know I will find one.

Yarko

RE: How to select correct Femap instance using API

(OP)
Thanks Yarko for your reply.
I can check the number of running Femap instances so example is no needed.
It looks I have to redesign my app due to this limitation to be sure my code runs in correct Femap instance.

Tadeusz

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources