.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Very strange error in Autocad 2012

1 REPLY 1
SOLVED
Reply
Message 1 of 2
gpq
Enthusiast
394 Views, 1 Reply

Very strange error in Autocad 2012

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

 

1 REPLY 1
Message 2 of 2
gpq
Enthusiast
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.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost