Unfortunately the final solution was not replied by the user and i have now a problem with perspective views. On top, side or right view the suggestion from steve works like a charm, but in perspective view it is totally wrong.
Does someone have a code example which works also with perspective views?
thank you for your fast reply.
I already worked with this method and for simple point transformations it works.
The bad thing about this method is, it returns a transformation with a zero length z vector which results in a “flat” output. If you just need the position, it works perfect, but in my case i need to evaluate in which direction a vector is showing in a specific detail view. And with this transformation my vector will be flatten in z direction.
Basically we need to annotate some detailed views on a layout with some automatism. For this i need to analyze how a geometry is displayed in this view. Only if this geometry is shown more or less from the top, i want to annotate this object in this view.
Further, the annotation is not only a dot or a text, it’s a curve which describes the contour of the object. This should be displayed in the page view accordingly to the position of the geometry. E.g. if a disc is shown in a view slightly from the side, it looks like an ellipse. In this case i want also to draw a curve which looks like an ellipse.
In the end it should be something like a component placement specification for an assembly in 3D.
today i tried a few things with a conduit and i think i can achieve almost everything we need.
At the moment the only disadvantage i can see is that the component placement specification can only be shown and printed when our plugin is loaded.
@dale do you think this is a good solution to create the annotation within a conduit? Or do you know any issue i run into with this solution (e.g. performance)?