MgdDbg for BricsCAD
Is there a BricsCad version of MgdDbg available?
It is a database snooping tool originally built for AutoCAD and is similar to Inspector, but it is more database centered.
Is there a way to load the AutoCAD version into BricsCAD as an arx type command?
ddk
Comments
-
yes, you will want these references for bcad:
C:\Program Files\Bricsys\BricsCAD V19 en_US\BrxMgd.dll
C:\Program Files\Bricsys\BricsCAD V20 en_US\TD_Mgd.dllNote that the pound is actually the "tic tac toe" character. (shift 3)
I did that to prevent formatting that the forum does.
Switch out for correct character.
That needs to be fixed bricsysmy usings look like this, based on if I have my ACAD or BCAD precompiler vars set in the project:
pound if ACAD
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using AcAp = Autodesk.AutoCAD.ApplicationServices.Application;
using Autodesk.AutoCAD.EditorInput;
using AcEd = Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.DatabaseServices;
using AcDb = Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using AcGe = Autodesk.AutoCAD.Geometry;
using AcCo = Autodesk.AutoCAD.Colors;
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD.GraphicsInterface;
pound endif
pound if BCAD
using Teigha.DatabaseServices;
using AcDb = Teigha.DatabaseServices;
using Bricscad.EditorInput;
using AcEd = Bricscad.EditorInput;
using Teigha.Geometry;
using AcGe = Teigha.Geometry;
using AcCo = Teigha.Colors;
using Teigha.Runtime;
using Teigha.GraphicsInterface;
using Bricscad.Runtime;
using Bricscad.ApplicationServices;
using AcAp = Bricscad.ApplicationServices.Application;
using Bricscad.Windows;
pound endifThat way, you write the same code for acad or bcad, as the aliases (aliai?) take care of pointing to the cad platform.
Once you do that it all smoothes out, its beautiful.I'll check on the snooper, I use that too sometimes in acad.
0 -
@James Maeding
how to start it? RThere are no "snoop..." commands...0 -
oh geeze, I misunderstood your post.
I have the .net source on those so will see about compiling for bcad, should be fun.0