Hi, experts,
Normally, in MouseEvents, you can move the mouse (cursor) all around the model space and get its position information. Is it possible to limit the mouse (cursor) to only move along a specific axis, such X axis, or Y axis, or an axis which is defined by a point and a vector?
Could you possibly give more context of your use case with either a sample code or image of the desired outcome?
Alan,
Thank you for your attention.
That will be exactly as the 3D route tool in Tube and Pipe. As below picture, you can move your mouse along an axis (normal of a circular edge, can be any orientation) and pick on any location on it. Is there any way to do that using API?
Some close example could be as API help sample [OnDrag Event - dragging a WorkPoint API Sample]. It projects a point onto XY plane.
The [OnDrag Event - API Sample] looks like a monitoring event and will not allow the user to control the mouse.
"UserInputEvents.OnDrag( DragState As DragStateEnum, ShiftKeys As ShiftStateEnum, ModelPosition As Point, ViewPosition As Point2d, View As View, AdditionalInfo As NameValueMap, HandlingCode As HandlingCodeEnum )"
You can move the mouse through the attached VBA rule, I am not sure if this can be done in VB.NET. Can you integrate this into your intended workflow? Is your end goal to recreate the route along a known path using the mouse?
Can't find what you're looking for? Ask the community or share your knowledge.