Hi,
I am creating a custom surfaceGraphics of a cube. I am not able to use Interaction Graphics ( it disappears as soon as it appears for some reason). I am using Nontransacting client graphics. So i have made surfaceGraphics.Selectable = true and surfaceGraphics.ChildrenAreSelectable = true. So when my mouse hovers over my cube, it shows face getting highlighted. When i click on the face and check the selectSet, the selectSet cout shows 1 entity but it is null.
How can I select my custom surfacegraphics and get the graphics node or face which was selected under the mouse click.?
Thanks in Advance
Solved! Go to Solution.
Solved by ekinsb. Go to Solution.
I'm guessing that the reason interaction graphics didn't work for you is because of how the variable referencing the InteractionEventsobject was declared. If it was a local variable and went out of scope then the InteractionEvents is destroyed and any graphics associated with it are also destroyed. I wrote a simple VBA test that I believe does what you described. It creates a surface graphics box and allows the user to pick faces on the box. The sample is attached. To use it import the frmSurfGraphicsSelect.frm file into an existing VBA project. It will create a new form. If you run the form it will create the box and start selection.
Thanks for your program.
At last I found the problem. I was creating my graphics using AddNonTranscting method. As soon as I changed to Add() method. The selection started working. 🙂