Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: sravang on February 05, 2021, 06:03:03 pm
-
Hello,
I want either ID/GUID of the classifier of element of type 'PART' to process them under associations.
I know that in case of sql query the GUID can be retrieved from 'PDATA1' column of t_object table. But I want that ID through API. I tried element.ClassifierID but it returns 0.
Thanks,
Sravan
-
PData corresponds to Element.MiscData
Geert
-
I got the right value from ClassifierID. Looked at an Object being classified. But indeed, a Part returns 0. Will have to look...
q.
-
Indeed MiscData(0) contains the GUID of the classifier. EA strikes again!
q.
-
Please try Element.PropertyType.
HTH,
-
Element.MiscData worked.
Thanks Geert,q for your response.
Thanks,
Sravan
-
Please try Element.PropertyType.
HTH,
That returns the ID. Funny though, it's not called PropertyTypeID. Ah, forgot, it's EA.
q.