.NET

Reply
gpq
Member
gpq
Posts: 5
Registered: ‎10-07-2008
Message 1 of 2 (185 Views)
Accepted Solution

Very strange error in Autocad 2012

185 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.

 

gpq
Member
gpq
Posts: 5
Registered: ‎10-07-2008
Message 2 of 2 (176 Views)

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.

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.