Getting error Could not load file or assembly 'Acdbmgd, Version=23.1.0.0, Cultur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
When i tried below code it gives me below error ,
Code :::
string fileName = @"C:\Users\rigel.DESKTOP-5OT3V45\Downloads\Sample.dwg";
Document acDoc = AcApplication.DocumentManager.Open(fileName);
//acDoc =
var ed = acDoc.Editor;
var selMText = new TypedValue[1];
selMText.SetValue(new TypedValue(0, "MTEXT"), 0);
var MTextObjs = ed.SelectAll(new SelectionFilter(selMText));
using (var Transaction = acDoc.Database.TransactionManager.StartTransaction())
{
foreach (ObjectId MTextObjId in MTextObjs.Value.GetObjectIds())
{
var current_MTextObj = Transaction.GetObject(MTextObjId, OpenMode.ForWrite) as MText;
string temp = current_MTextObj.Text;
//if (current_MTextObj.Text.Equals(TextYouNeed))
// return current_MTextObj;
// or
// do somehting else
}
}
Error::
System.IO.FileNotFoundException: 'Could not load file or assembly 'Acdbmgd, Version=23.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.'
Any help will be appreciable.
Thanks,
Jatin Vyas.
jatin.vyas@rigelnetworks.com