Hi all,
This question could have two answers, depending on whether I'm attempting this the right way round or not.
I'm trying to create composite elements for a diagram, so that when the element appears on the diagram it has the "sideways 8" Composite symbol on it and it can be double-clicked to jump into the sub-diagram.
I've created my element with subtype = 8 (Composite) as according to the automation reference, and added subelements/diagram within it.
Once I've created my main diagram, right-clicking on the element and viewing the "Advanced" menu shows the "Composite" option as already being ticked. However double-clicking the element just brings up the Properties window.
If I untick the Composite option on that menu, the text changes to "Make Composite". If I click that, the element then changes to show the Composite symbol and correctly links to the sub-diagram.
From what I can see at table level, all that's happening on "Make Composite" is that the diagram ID is being added to the element's PDATA1 field. So, how do I get this in there? Presumably either:
- Write to the PDATA1 field - can't see how to go about this
- Another method that I'm not aware of
As far as I can see, MISCDATA is read-only, and there is no PDATA access from the automation interface. SQL is SELECT statements only.
Any tips?
Thanks in advance,
James