I’m trying to create in my plugin a custom Pipeline that draw text tags in viewport for given shapes. When the command runs something like this appears:
I created an example in github which replicates the pipeline functionality:
The example is really simple and is intended only to replicate the issue. The actual code is way smarter and also handles deleting the tags when the shapes are removed (which not happens in the example), but for sanity and confidentiality I cannot show the whole code.
Without looking at the code I’d say the text ‘base point’ for drawing and printing is different.
Where the drawing is done using the text centerpoint for the printing the text starting point is used.
So first thing to check would be how the text for printing is positioned in relation to the rectangle.
The problem is that I have no control of this as the text is just displayed in a pipeline, and it’s not actually a Rhino object in the document.
My guess is that Rhino prints pipeline text uses default positioning of the text, ignoring the positioning I set for the pipeline. I can try to set no positioning and see if both printing and viewport match and bring updates on that.
However it would be nice for the printer to grab the real positioning since this gives me way more control on it’s location.