Is it possible? I’ve been having issues getting things to show up.
Check these examples: Code search results · GitHub
I got my code working but vibe coded the heck out of it so I’m unsure if rhinoscriptsyntax does in fact not work in dynamic draw functions. Using the rs functions is so much easier but I’m getting the hang of RhinoCommon at least.
I need to create a Github account to see the search results. I’ve dug through the samples quite extensively. There’s enough to get a person started but more is better, especially updated code.
Rhinoscriptsyntax functions create the objects and then immediately add them to the Rhino document. It sounds like you want to use the display pipeline to preview objects BEFORE adding them to the document, so you will be forced to create the objects via RhinoCommon.
Something else you need to keep in mind is that you will need to dispose of all the objects that you preview.
I just made an updated example that shows how to track objects for disposal as well has how to do things like convert a brep to a mesh (meshes work better in the preview) and how to add edge curves (they really help define the shapes in the preview objects).
I put it on an older thread that was about these topics.
Thank-you!!
Your script is awesome! There is a lot to take in. It’s very useful for learning ETO forms too. Reminds me of WinForms. Everyone always touts new dialog frameworks while critiquing the old, but those new dialogs are also always broken haha!
I’m glad you find it useful. Keep in mind I’m self-taught, so this is not an example of best-practices, just the best I could figure out so far. (Edit: I happen to be fond of the old-school dialog boxes.)