Community
Hi
I am recieving the message invalid execution context when I try to open a drawing. The form that this button is on was opened modeless.
any help would be much appreciated.
Private Sub BTN_Select_Attribute_Tag_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_Select_Attribute_Tag.Click OpenFileDialog1.Filter = "AutoCAD Drawings|*.dwg" OpenFileDialog1.Multiselect = False Dim dialogRes As DialogResult = OpenFileDialog1.ShowDialog() If dialogRes = Forms.DialogResult.OK Then Dim dwgName As String = OpenFileDialog1.FileName Dim acDoc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(dwgName, True)
Solved! Go to Solution.
Solved by GeeHaa. Go to Solution.