XrefOverride in Database object

XrefOverride in Database object

fsztuczny
Advocate Advocate
182 Views
1 Reply
Message 1 of 2

XrefOverride in Database object

fsztuczny
Advocate
Advocate

Hello

I open the drawing without an editor (batch processing):

__db.ReadDwgFile( dwgPath, FileShare.ReadWrite, true, "" );

I would like to set the variable XrefOverride in this drawing. How can this be done without having to open the drawing in the editor?

 

Regards

0 Likes
Accepted solutions (1)
183 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant
Accepted solution

You have to set the 'side' database as WorkingDatabase to be able to write datase system variables. Do not forget to reset the working database or use some class as @ActivistInvestor 's WorkingDatabase.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub