Hello all,
I have a very stange situation.
I have create an application with Vs2010 for Acad2012 and all works fine on Pc of my colleague.
On my develop Pc i have error.I don't understand why?.Can someone help me?.
Vs2010
my AutoCad2012 (from Autodesk Product designSuite)
colleague Autocad2012 standalone
Framework 4.0
i have already reinstall autocad and also Vs2010 ,but don't work always only on my develop PC.
Thanks in advance.
For Each mym In AcAs.Application.DocumentManager If AcAs.Application.GetSystemVariable("dbmod") <> 0 Then If MessageBox.Show("Save " & mym.Name & " ?", _ "Haarmann Information", _ MessageBoxButtons.YesNo, _ MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then mym.Database.SaveAs(mym.Name, True, AcDbs.DwgVersion.Current, mym.Database.SecurityParameters) mym.LockDocument.Dispose() End If End If Try mym.CloseAndDiscard() Catch ex As Exception MessageBox.Show(ex.ToString) Finally mym.Dispose() End Try Me.Refresh() Next AcAs.Application.DocumentManager.DocumentActivationEnabled = True Try mym = AcAs.Application.DocumentManager.Add(PathSupport & "haarmann.dwt") mym.LockDocument(AcAs.DocumentLockMode.AutoWrite, Nothing, Nothing, True) Catch ex As System.Exception MessageBox.Show(ex.ToString) End Try mym.Database.SaveAs(pathNomeOut & ".Dwg", True, AcDbs.DwgVersion.Current, mym.Database.SecurityParameters) mym.LockDocument.Dispose()
Solved! Go to Solution.
Solved by gpq. Go to Solution.
Solved!.
With VS2010 and framework 4.0 to stop on breakpoint in debug mode you must set "NEXTFIBERWORLD" to 0.
But if i set to 0 i have the problem above-written .If i put to 1 all continue to works fine.
Thanks at all.