object

Hi,

Could you point me out how I could save the .obj of a block? In the code it says its not included, but how can I include myself in the save of the stream? Whatever I do, it doesn't work. Not sure why...
Thx
Geert

to be more precise I want to save it in de diagram file and load it back up

Still don't understand. To save the diagram, use SaveToFile, to save to stream, use SaveToStream. It will save all blocks in the diagram. Not sure what do you mean by ".obj of a block".

you got a tdiagramblock.obj part where you can put objects in it. Those are not saved to file. Or am I wrong?

Geert

Thanks, I understand now, you mean the Obj property. When it's a public property and it's not supposed to be saved, especially because it's an object, so the purpose is only for runtime. If you want to persist custom block data I suggest you somehow convert your data to a string and use StringData property, that property is persisted with the block.

cool stuff thx!

Hi,

So I used the stringdata property. Indeed I can save this on the objects. However, when I attach the stringdata property on a tgroupblock, this isn't saved in the file. Is this normal?
Geert

same goes for the tdiagramlinejoin

Correct, StringData property is not made published in those classes. I have added them here, you can just add StringData property to published section.

should have known that.. thx!