Port Image Not Copied/Pasted

On the way.

OK… I’ve been an idiot. You said right up front “copied and pasted”, and I’ve been doing ctrl-drag-copying. (they use different mechanisms)

When copy/paste doesn’t work, it points to a serialization issue with your class.

The first thing to try is a call to GoDocument:TestSerialization() <span =“Apple-style-span” style=": rgb248, 248, 252; “>to check. (See the API reference).
<span =“Apple-style-span” style=”: rgb248, 248, 252; “>

<span =“Apple-style-span” style=”: rgb248, 248, 252; “>The reference says “If there is a problem, you are likely to get a SerializationException”.
<span =“Apple-style-span” style=”: rgb248, 248, 252; “>

<span =“Apple-style-span” style=”: rgb248, 248, 252; “>And I’ve tried that on your node, and there is no exception. But… if I do
<span =“Apple-style-span” style=”: rgb248, 248, 252; “>

<span =“Apple-style-span” style=”: rgb248, 248, 252; “> myView.Document = myView.Document.TestSerialization()
<span =“Apple-style-span” style=”: rgb248, 248, 252; “>

<span =“Apple-style-span” style=”: rgb248, 248, 252; “>on a diagram that has one of your nodes…poof…the image disappears.
<span =“Apple-style-span” style=”: rgb248, 248, 252; “>

<span =“Apple-style-span” style=”: rgb248, 248, 252; ">so, it seems to be a serialization problem, I just don’t know what yet.

OK, if I now go back to the Processor sample and do the same thing with ActivityNode, I see the same problem. So, it’s not your PFnode. It’s something about PortObject and images.

Getting closer.