
Tue, 06/21/2011 - 14:46
Forums:
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?
Tue, 06/21/2011 - 15:02
Hi,
Use DynamicType()->Name(); // returns CString
Regards
Tue, 06/21/2011 - 15:28
OK..Thanks a lot.
Wed, 06/22/2011 - 08:40
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.
Wed, 06/22/2011 - 10:40
You can easy find a lot of examples grepping OCCT
sources with key = "DynamicType()->Name()".
Regards