Loads class content from a string and inserts it into the given loaded class with an optional position offset for graphical annotations. The existing class must be a long class definition, either normal or class extends. The content is merged according to the following rules:
Any section not merged is added after the last section of the same type, or where they would normally be placed if no such section exists (i.e. public/protected first, then equations, etc).
Example:
loadClassContentString(" Real y; equation y = x; ", P.M);
If an offset is given it will be applied to the graphical annotations on the loaded content before it's merged into the class, for example Placement annotations on components.
function loadClassContentString input String data; input TypeName className; input Integer offsetX = 0; input Integer offsetY = 0; output Boolean success; end loadClassContentString;