akaple_aka_kapes139776
2007-06-20, 02:18 PM
Good day all.
I am still getting familiar with the .NET API for AutoCAD and learning some techniques.
I was wondering if anyone has some insight into adding a jig to this code for getting an insertion point for a drawing.
Here is the insertion point example without a jig:
Dim prPointOptions As PromptPointOptions = New PromptPointOptions("Select Your Point:")
Dim prPointRes As PromptPointResult
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
prPointRes = ed.GetPoint(prPointOptions)
'Check and make sure the user selected a point
If prPointRes.Status <> PromptStatus.OK Then
ed.WriteMessage("You did not select a point!") 'Just return for this practice
End If
This method will retrieve the insertion point, but the idea is to have a jig trailing the insertion cursor the user sees on the screen, which can be a dynamic block reference or at the least a .jpg trailer. I would like to avoid using the COM reference for resource purposes this is running on AutoCAD 2006 and up.
Thanks in advance for your suggestions. Have a great day!
I am still getting familiar with the .NET API for AutoCAD and learning some techniques.
I was wondering if anyone has some insight into adding a jig to this code for getting an insertion point for a drawing.
Here is the insertion point example without a jig:
Dim prPointOptions As PromptPointOptions = New PromptPointOptions("Select Your Point:")
Dim prPointRes As PromptPointResult
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
prPointRes = ed.GetPoint(prPointOptions)
'Check and make sure the user selected a point
If prPointRes.Status <> PromptStatus.OK Then
ed.WriteMessage("You did not select a point!") 'Just return for this practice
End If
This method will retrieve the insertion point, but the idea is to have a jig trailing the insertion cursor the user sees on the screen, which can be a dynamic block reference or at the least a .jpg trailer. I would like to avoid using the COM reference for resource purposes this is running on AutoCAD 2006 and up.
Thanks in advance for your suggestions. Have a great day!