Hi guys !
In my class I use a fonction that asks to user an insertion point...
I dont know why in drawing named "OK", all it's working, bt in another one named "NOT OK", Autocad does'nt uses the insertion point specify by the user...
I attached to this thread a printscreen of all different variables between drawings "Ok" and "NOT OK".
Variables.jpg
If I copy all the objects from drawing "NOT OK" to the "OK", Autocad uses the insertion point specify by the user. It's why I think there's a variable that affect the insertion point
Is someone could help me ?
I put the code even I think there's no something wrong in that...
Code:
Public Function InsertionPoint() As Point3d
'Get the current database and start the Transaction Manager
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database
'Declare prompt
Dim pPtRes As PromptPointResult
Dim pPtOpts As PromptPointOptions = New PromptPointOptions("")
'Prompt for insertion point
pPtOpts.Message = vbLf & "Specify table insertion point: "
pPtRes = acDoc.Editor.GetPoint(pPtOpts)
InsertionPoint = pPtRes.Value
'Exit if the user presses ESC or cancels the command
If pPtRes.Status = PromptStatus.Cancel Then
'Return 0,0,0 when cancelled
InsertionPoint = New Point3d(0, 0, 0)
End If
'Return Insertion Point
Return InsertionPoint
End Function
Thanks in advance !