My point was not intent to link the shape, but rather than ComponentID it can be word TEXT. The point was to show up the TEXT TRANSFORM section in the shapesheet. But I’m glad you are getting in.
My previous post is for a direct shape-text (the text of a simple shape = one single entity) which is the result of sample A.
Even the actual result you are getting is the sample B. But you are getting there!
If you add a line to the shape you need to reference the TxtAngle value (from TEXT TRANSFORM section) of the Text to the TxtAngle of the whole shape. Adding one or more entities (objects) will require grouping them, and then handling the group as one single entity. After grouping follow the steps to add the TEXT TRANFORM section (for the group) and set the TxtAngle as –Angle, then do the same for the TEXT (ComponentID) entity (single text) and set the TxtAngle value as Sheet.5!TxtAngle (the number 5 can be different and you can find the right number at the top of your text entity shapesheet “shape transform” section). As a result see sample C.
samples.jpg