plsmith.161671
2008-02-28, 10:31 PM
Trying to impliment a "save back" to attached drawings in the VB.NET API.
From what little documentation is available the procedure should be:
Foreach dwg in attacheddrawings...
dwg.LockForWrite(false)
dwg.CloneBack()
dwg.Save
dwg.UnlockForWrite()
When we do this we get an MapException error on the CloneBack method call. We tried this with CloneBackArea and get the same error.
We contacted Autodesk ADN tech support and they admit there is a problem with CloneBackArea but that CloneBack is working fine. But we have yet to have CloneBack or CloneBackArea work at all.
In the past in AutoLISP we used ade_saveobjs call to save queried/modified object back to the dwgs and also newly created objects by area. We are trying to replace all AutoLISP code with VB.NET to move forward to future versions of AutoCAD Map.
Thanks,
Paul L. Smith
From what little documentation is available the procedure should be:
Foreach dwg in attacheddrawings...
dwg.LockForWrite(false)
dwg.CloneBack()
dwg.Save
dwg.UnlockForWrite()
When we do this we get an MapException error on the CloneBack method call. We tried this with CloneBackArea and get the same error.
We contacted Autodesk ADN tech support and they admit there is a problem with CloneBackArea but that CloneBack is working fine. But we have yet to have CloneBack or CloneBackArea work at all.
In the past in AutoLISP we used ade_saveobjs call to save queried/modified object back to the dwgs and also newly created objects by area. We are trying to replace all AutoLISP code with VB.NET to move forward to future versions of AutoCAD Map.
Thanks,
Paul L. Smith