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

Exception on command db.database.saveas(filename,dwgcurrent.curent)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
AubelecBE
456 Views, 2 Replies

Exception on command db.database.saveas(filename,dwgcurrent.curent)

my code :

...

InfoFichier = New FileInfo(Txt)
 'enregistrement
dwg.Database.SaveAs(Txt, DwgVersion.Current)

'vérification si fichier existe bien !
If InfoFichier.Exists = True Then
    dwg.CloseAndDiscard()

   ....

 

 

i have buid with framework 3.5.

 

This code work fine with Autocad v2010 but i have a exception with Autocad v2009. (same .dll)

exception DwgVersion.current

 

I have try another DwgVersion.AC1014 and other  but it  crash always on the SaveAS.

 

 

Can you explain this  ?

 

Thx

 

PS : I need to have the same .DLL. (At work, i have computers on Autocad 2009 and v2010). And i dont know how to programm ths VS project for multi buid.)

2 REPLIES 2
Message 2 of 3
arcticad
in reply to: AubelecBE

dwg.Database.SaveAs(strDWGName, True, DwgVersion.Current, _
                                          dwg.Database.SecurityParameters)

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 3 of 3
AubelecBE
in reply to: arcticad

Thx.

 

 

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