[cgma-dev] Observer question?
Tim Tautges
tautges at mcs.anl.gov
Mon Jul 22 16:31:14 CDT 2013
On 07/22/2013 04:20 PM, David Thompson wrote:
> Hi Tim,
>
>>> ... for tracking persistent geometry across operations ... Would you advise adding UUIDs as attributes ...?
>>
>> No; you'd get exactly the same results. We hang an attribute on the engine entities pointing to the CGM entities, then after the operation, see what's left, and remove the CGM entities that are no longer referenced. So in a sense, we only get "before" and "after" pictures, not "during" pictures.
>
>
> I think we're in violent agreement; if there is no "during" picture, then I should just fetch entities "after" which have the same entityId as they did "before." Is that what you meant?
>
Yep. And, CGM should do that for you already. That is, the CGM entities that survive will persist, and the others will
have their observer functions called before they get deleted.
- tim
> Thanks,
> David
>
--
================================================================
"You will keep in perfect peace him whose mind is
steadfast, because he trusts in you." Isaiah 26:3
Tim Tautges Argonne National Laboratory
(tautges at mcs.anl.gov) (telecommuting from UW-Madison)
phone (gvoice): (608) 354-1459 1500 Engineering Dr.
fax: (608) 263-4499 Madison, WI 53706
More information about the cgma-dev
mailing list