Test the Type using Dynamic Type

Hi all,
I have to create a command in Draw Test Harness which will check a line and a circle and give the name of the shape as the output and if it is a circle give the radius as well.
I tried to do this using Dynamic Type but could not.
Can someone give me any sample for this?

Forum supervisor's picture

Hi,
Use DynamicType()->Name(); // returns CString
Regards

gishara's picture

OK..Thanks a lot.

gishara's picture

Can you provide me a sample code on using Name method of Dynamic Type to do the above task? I searched a lot, but could not find out. Please help me.
Thanks.

Forum supervisor's picture

You can easy find a lot of examples grepping OCCT
sources with key = "DynamicType()->Name()".
Regards