jig acquire / prompt getPoint from forms
Posted: Mon Jun 15, 2026 9:04 am
I am developing an IntelliCAD .NET plugin and I am having trouble getting Object Snap / Entity Tracking to work during a DrawJig.
The workflow starts from a WinForms form. From the form, I create some entities and run a custom DrawJig to move/rotate/scale them before committing the transaction.
For rotation, I originally used JigPromptAngleOptions with prompts.AcquireAngle(), but Object Snap / Entity Tracking did not work during the jig. I then changed the rotation step to use JigPromptPointOptions with prompts.AcquirePoint(), using a base point and rubber band, and calculating the angle manually from the picked point.
Example:
```vb
Dim opt As New JigPromptPointOptions()
opt.Message = vbLf & "Rotate>"
opt.UseBasePoint = True
opt.BasePoint = basePoint
opt.UseRubberBand = True
opt.Cursor = CursorType.RubberBand
opt.UserInputControls =
UserInputControls.Accept3dCoordinates Or
UserInputControls.GovernedByOrthoMode Or
UserInputControls.GovernedByUCSDetect Or
UserInputControls.UseBasePointElevation
Dim res As PromptPointResult = prompts.AcquirePoint(opt)
Before calling Editor.Drag(jigger), I also call:
IntelliCAD.Internal.Utils.SetFocusToDwgView()
The rubber band is displayed correctly, and the jig updates visually, but Object Snap / Entity Tracking still does not snap to entities such as roof sheet/profile geometry while the jig is running.
If I use a normal Editor.GetPoint() from a command, Object Snap works. The problem appears specifically when point acquisition happens inside DrawJig, especially when the workflow is initiated from a WinForms form.
Questions:
Is Object Snap / Entity Tracking fully supported inside DrawJig with JigPrompts.AcquirePoint() in IntelliCAD .NET?
Are there additional UserInputControls flags or editor/system-variable settings required to enable running OSNAP during a jig?
Is starting the workflow from WinForms known to affect OSNAP behavior inside DrawJig?
Is the recommended approach to collect snap-sensitive points using Editor.GetPoint() in a command context, and use DrawJig only for visual preview/transformation?
Is there any equivalent of forcing or enabling OSNAP for JigPromptPointOptions?
Any guidance or sample code for DrawJig + Object Snap / Entity Tracking in IntelliCAD .NET would be appreciated.
The workflow starts from a WinForms form. From the form, I create some entities and run a custom DrawJig to move/rotate/scale them before committing the transaction.
For rotation, I originally used JigPromptAngleOptions with prompts.AcquireAngle(), but Object Snap / Entity Tracking did not work during the jig. I then changed the rotation step to use JigPromptPointOptions with prompts.AcquirePoint(), using a base point and rubber band, and calculating the angle manually from the picked point.
Example:
```vb
Dim opt As New JigPromptPointOptions()
opt.Message = vbLf & "Rotate>"
opt.UseBasePoint = True
opt.BasePoint = basePoint
opt.UseRubberBand = True
opt.Cursor = CursorType.RubberBand
opt.UserInputControls =
UserInputControls.Accept3dCoordinates Or
UserInputControls.GovernedByOrthoMode Or
UserInputControls.GovernedByUCSDetect Or
UserInputControls.UseBasePointElevation
Dim res As PromptPointResult = prompts.AcquirePoint(opt)
Before calling Editor.Drag(jigger), I also call:
IntelliCAD.Internal.Utils.SetFocusToDwgView()
The rubber band is displayed correctly, and the jig updates visually, but Object Snap / Entity Tracking still does not snap to entities such as roof sheet/profile geometry while the jig is running.
If I use a normal Editor.GetPoint() from a command, Object Snap works. The problem appears specifically when point acquisition happens inside DrawJig, especially when the workflow is initiated from a WinForms form.
Questions:
Is Object Snap / Entity Tracking fully supported inside DrawJig with JigPrompts.AcquirePoint() in IntelliCAD .NET?
Are there additional UserInputControls flags or editor/system-variable settings required to enable running OSNAP during a jig?
Is starting the workflow from WinForms known to affect OSNAP behavior inside DrawJig?
Is the recommended approach to collect snap-sensitive points using Editor.GetPoint() in a command context, and use DrawJig only for visual preview/transformation?
Is there any equivalent of forcing or enabling OSNAP for JigPromptPointOptions?
Any guidance or sample code for DrawJig + Object Snap / Entity Tracking in IntelliCAD .NET would be appreciated.