ONUR NIZAM

ONUR NIZAM

  • NA
  • 21
  • 1.3k

I have a problem with programming BricsCAD with c# in visual

Apr 17 2018 1:36 AM
"'System.BadImageFormatException' ocurred in System.Windows.Forum.dll // additional information:'TD_Mgd Version=3.6.0.0 Culture=Neutral PublicKeyToken=null'"
 
when running C# program. Than i changed .NET version but i had another error like that "system.io.filenotfoundexception" at same dll as TD_Mgd. I have no solution for this. If someone has experience for bricscad programming with c# please help me.
 
 
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { BricscadApp.AcadApplication cadApp = new BricscadApp.AcadApplication();          cadApp = (BricscadApp.AcadApplication)System.Runtime.InteropServices.Marshal.GetActiveObject("BricscadApp.AcadApplication");         cadApp.Visible = true; BricscadApp.AcadDocument ThisDrawing = cadApp.ActiveDocument; Point2d asd = new Point2d(10, 20); Point2d asdf = new Point2d(25, 30);         cadApp.ActiveDocument.ModelSpace.AddLine(asd, asdf); } }

Answers (1)