02-04-2023 03:05 AM - edited 02-04-2023 03:18 AM
Hi,
I have created a new custom data type and now I am wondering if it is possible to get its Version programmatically.
I am using this custom data type as a result container and I want to store the Version of the data type as a string inside itself. I want to use this as a version control.
In my sequence I have created a container in FileGlobals named Result. I have found the option of getting the TypeVersion of a propertyobject but I couldn't get it work this way:
FileGlobals.Result.Version = FileGlobals.Result.AsPropertyObject.TypeVersion
Is there a way to do this?
Thanks in advance! Any help appreciated.
Solved! Go to Solution.
02-05-2023 08:48 PM - edited 02-05-2023 08:52 PM
Hi lwi94
I help you try it 30 mins to get answer.
When you creat a custimized container and have it's name.
Then ues statement "RunState.Engine.GetTypeDefinition("XXXXX").TypeVersion" to get the version
XXXXX means your container's name.
Thanks,
Ricky
02-06-2023 01:11 AM
Hi Ricky_76,