|Re: saving error: object xyz is not contained in a resource [message #519109 is a reply to message #519106]
||Sat, 06 March 2010 16:56
| Ed Merks
Registered: July 2009
You don't give enough details to know what you're talking about. I
don't know what BOM, Map, or Item are. Nor do I understand temp. What
the error is telling you is that there's some object xyz referenced by
some other object in your resource, but xyz isn't in that resource or
any other resource. Likely xyz.eContainer() == null and for sure
xyz.eResource() is null. Generally xyz will need to be added to a
containment reference of some other object or needs to be directly added
to the root of the resource (such that xyz.eResource != null).
> I have a strange problem...
> when I try to save my editor, an error came up:
> The object xyz is not contained in a resource
> here is the environment.
> Ok, BOM is not contained directly in Map, but Item yes!
> How can I manage this?
> I tried to add another class (temp) between BOM e Map, so map
> contained temp and temp contained bom. I had to create 2 write
> transaction each time i added a bom: one for add bom at item and one
> for add bom at temp.
> In that way when I saved i got no errors. But when the editor read the
> .omm file, it lost the link between item and bom. Indeed, I wouldn't
> linke this solution anyway...
> Help please...
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.02257 seconds