api question

Discussion in 'SolidWorks' started by Sean Phillips, Sep 18, 2003.

  1. does anyone know what api's if any. that will give you what the mouse
    is held over on the screen. "the geometry that turns red as you move
    around".

    thanks in advance
     
    Sean Phillips, Sep 18, 2003
    #1
  2. I'm afraid it is not available directly, you'll have to do something rather
    tricky:
    use microsoft's windows API to obtain the mouse pixel position in your
    ModelView,
    then ModelView::Transform to obtain the XYZ position in model space
    then use ModelView::GetEyePoint to define a vector going from your eye
    through the obtained point
    and finally ModelDoc::RayIntersections+GetRayIntersectionsTopology, quite
    complex especially in assemblies, to obtain the desired points.
    Another way is to request apisupport to implement this api, and wait a few
    years...
    Maybe you'd rather stick to selections...
     
    Philippe Guglielmetti, Sep 19, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.