I have another question about the Conduit. I am not finding a function to draw/preview Annotations (ON_LinearDimension, ON_RadialDimension, …) ?
Also I am not sure how to handle ON_Annotations in general. Is there an example on how to create them, or how to add them to the document? Without the CRhinoAnnotationObject? (for example, I can simply draw an ON_Mesh with context.m_doc.AddMeshObject() or preview it in a conduit with dp.DrawShadedMesh())
Yes, annotations do work different than other geometric objects. To draw them in a conduit or in a dynamic draw operation, just call CRhinoAnnotationObject::Draw().
I want to write an grasshopper component to preview annotations like LinearDimension and AngularDimension.
And I can not find the method like Draw() in C# to draw the annotations
in DrawViewportWires Or DrawViewportMeshes
ps: Displaypipeline Class seem to have an method DrawAnnotation() but it could not work well
Hi @Alain@dale@DavidRutten, I still have a puzzle about Why when I use the DrawAnnotation(annotation, color) in Grasshopper inner DrawViewportMeshes(IGH_PreviewArgs args) method the color only affect the dimension’s arrow and the text, and the other is still black, and I think this is an bug of the DrawAnnotation the detail is as follow: