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

read from xref

1 REPLY 1
Reply
Message 1 of 2
fallright
291 Views, 1 Reply

read from xref

I've written some code voor C3D R2010 and all has worked fine without errors. In C3D R2013 I get numerous errors.

Now I have an error when I want to read info from an x-reffed file.

When executing the code db.ReadDwgFile(tekening, IO.FileShare.Read, True, "")

Autocad gives a Fatal Error

 

 

See code

 

hlp = "C:\magweg\8859 4a GRONDPLAN CIVIL.dwg"
if zoekkaders (hlp) then ...

....


    Public Function zoekkaders(ByVal tekening As String) As Boolean
        Dim myDWG As ApplicationServices.Document
        Dim myEd As EditorInput.Editor
        Dim myBlock As DatabaseServices.BlockReference
        myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument
        myEd = myDWG.Editor
        Dim db As New DatabaseServices.Database
        If tekening <> "basis" Then db.ReadDwgFile(tekening, IO.FileShare.Read, True, "") Else db = myDWG.Database

....
1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: fallright

I suggest asking this question in the Discussion group for Civil3d Customization.

http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190

 

I am sure you will get an answer there.



Balaji
Developer Technical Services
Autodesk Developer Network

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