.NET

Reply
Member
5 Posts
1 Kudo
Registered: ‎10-07-2008
Post 1 of 2
Accepted Solution

Very strange error in Autocad 2012

191 Views, 1 Replies
11-09-2012 01:47 AM

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()

 screenshoot.JPG

 

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.

 

Member
5 Posts
1 Kudo
Registered: ‎10-07-2008
Post 2 of 2

Re: Very strange error in Autocad 2012

11-09-2012 03:38 AM in reply to: gpq

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.

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post