How to capture regeneration status (Green-Fully generated, Yellow-Needs regeneration, Red-Failed Regeneration) using
Object of ProSolidRegenerationStatus is enum and you will get this as return type from API "ProSolidRegenerationstatusGet"
thanks for the reply.
I have written code as below, where objAsmMdl read the assembly name.
after writing this code every time it shows status 2 as failed regeneration which is irrespecting to the regeneration status of the assembly. I mean if the assembly is fully generated than also the code give the value as 2.
Can you help in improving the code?
ProSolidRegenerationStatus regenStatus = PRO_SOLID_FAILED_REGENERATION;
status = ProSolidRegenerationstatusGet((ProSolid)objAsmMdl, ®enStatus);
if (status != PRO_TK_NO_ERROR)
Log::WritetoLog("ITCPATPumpAutomationMain::Regeneration Status----->Failed to Regenerate",status,0);
Maybe I’m wrong, but for me you check only the status of your function call, and not the return value ‚regenStatus’
Issue is resolved now. Thanks for your response.