Topic
  • 3 replies
  • Latest Post - ‏2012-10-08T14:46:53Z by lecping
lecping
lecping
8 Posts

Pinned topic How to get the Type of an object from IRPInstance?

‏2012-09-14T13:27:59Z |
Hi everybody,

I am interested to get the Type of an Object as an information.
I tried to typecast from IRPInstance to IRPClass/IRPClassifier/IRPType. It was ClassCastException.
Do anyone have a suggest or idea for which Interface that I should typecast for getting the Type of an Object?

Or do you have any idea how to get the information directly from the Feature Dialog? it would be rather more straight forward for harvesting from information from the model.

Thank you very much in advance!

Best regards,
lecping
Updated on 2012-10-08T14:46:53Z at 2012-10-08T14:46:53Z by lecping
  • Lepido
    Lepido
    30 Posts

    Re: How to get the Type of an object from IRPInstance?

    ‏2012-10-05T13:17:06Z  
    Hi,
    I have the same issue, trying to get the Type of an IRPInstance.

    Any help is appreciated!

    Greetings

    Lepido
  • MerlinUK
    MerlinUK
    109 Posts

    Re: How to get the Type of an object from IRPInstance?

    ‏2012-10-08T10:54:52Z  
    • Lepido
    • ‏2012-10-05T13:17:06Z
    Hi,
    I have the same issue, trying to get the Type of an IRPInstance.

    Any help is appreciated!

    Greetings

    Lepido
    You need IRPInstance.getOtherClass()

    Cheers
    Andy
  • lecping
    lecping
    8 Posts

    Re: How to get the Type of an object from IRPInstance?

    ‏2012-10-08T14:46:53Z  
    • MerlinUK
    • ‏2012-10-08T10:54:52Z
    You need IRPInstance.getOtherClass()

    Cheers
    Andy
    Hi Andy,

    Thank you for the helpful tips!

    Cheers
    lecping