Cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the Type of an Element

Valued Contributor
Valued Contributor

Hi,

 

i have a object and want to know which type it is so a Method, a Drain, a Source .... something like that. I tried it with .Class and it works well but not for Mehods.

 

I need a generall solution because i comunicate over dde and have a string that i can give to Plant Simulation that will be executed.

 

so something like print typeOf(.Models.Frame.init); // output: for example .InformationFlow.Method

1 REPLY

Re: Getting the Type of an Element

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need a reference to avoid the call:

ref(.Models.Frame.init).class.name

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net