TheSwamp

Code Red => .NET => Topic started by: Kerry on April 25, 2012, 08:32:49 AM

Title: AutoLoader for MgdDbg
Post by: Kerry on April 25, 2012, 08:32:49 AM
For Stephen Preston or Fenton Webb
.. posted here because the DevBlog won't accept XML.

but EVERYONE should feel free to post relevant comments :)

Re : ADN DWG Debugger and DataBase Viewer - MGDDBG
http://adndevblog.typepad.com/autocad/2012/04/dwg-debugger-mgddbg-app-for-autocad-20122013.html

I wanted to change the functionality to Demand load rather than than StartUp load
ie : use LoadOnCommandInvocation
The attached PackageContents.xml is my revised file.

Here's the Quandry : The LocalNames in the Source are SnoopDb and SnoopEd.
They wouldn't work so I used the Global Names MgdDbgSnoopDb and MgdDbgSnoopEd as the LocalName.

The Assembly demand loads and runs sucessfully using the GlobalName at the CommandLine.

Lines 35 to 51 have been added and I've left the 2013 listing so the Assembly loads at startup.
Code - XML: [Select]
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ApplicationPackage
  3.  AppNameSpace="adn.exchange.autodesk.com"
  4.  AppVersion="1.0.0"
  5.  Author="Fenton Webb"
  6.  AutodeskProduct="AutoCAD"
  7.  Description="Debugging tools for AutoCAD - MgdDBG"
  8.  HelpFile="./Contents/Resources/helpfile.html"
  9.  Icon="./Contents/Resources/resource/Inspector.jpg"
  10.  Name="DWG MgdDBG"
  11.  OnlineDocumentation=" "
  12.  ProductCode="{DB35F952-289A-4453-A46D-B424A6FCFDFB}"
  13.  ProductType="Application"
  14.  SchemaVersion="1.0"
  15.  SupportedLocales="Enu"
  16.  UpgradeCode="{E5B78003-2D7B-490F-B947-65D804392151}">
  17.   <CompanyDetails
  18.    Email=" adn.autodesk.com"
  19.    Name="Autodesk"
  20.    Phone=" "
  21.    Url=" www.autodesk.com"/>
  22.   <RuntimeRequirements
  23.    OS="Win32|Win64"
  24.    Platform="AutoCAD|AutoCAD*"
  25.    SeriesMax="R19.0"
  26.    SeriesMin="R18.2"/>
  27.   <Components
  28.    Description="AutoCAD 2012">
  29.     <RuntimeRequirements
  30.      OS="Win32|Win64"
  31.      Platform="AutoCAD*|AutoCAD"
  32.      SeriesMax="R18.2"
  33.      SeriesMin="R18.2"/>
  34.  
  35.     <ComponentEntry
  36.      AppDescription="Debugging tools for AutoCAD - MgdDBG"
  37.      AppName="DWGMgdDBG"
  38.      LoadOnCommandInvocation="True"
  39.      ModuleName="./Contents/Resources/DWGMgdDbgSource/bin/Debug2012/MgdDbg.dll"
  40.      Version="1.0.0">
  41.  
  42.       <Commands
  43.        GroupName="MgdDbg">
  44.         <Command
  45.          Global="MgdDbgSnoopDb"
  46.          Local="MgdDbgSnoopDb"/>
  47.         <Command
  48.          Global="MgdDbgSnoopEd"
  49.          Local="MgdDbgSnoopEd"/>
  50.       </Commands>
  51.     </ComponentEntry>
  52.  
  53.     <ComponentEntry
  54.      Description="AutoCAD 2013">
  55.       <RuntimeRequirements
  56.        OS="Win32|Win64"
  57.        Platform="AutoCAD*|AutoCAD"
  58.        SeriesMax="R19.0"
  59.        SeriesMin="R19.0"/>
  60.       <ComponentEntry
  61.        AppDescription="Debugging tools for AutoCAD - MgdDBG"
  62.        AppName="DWGMgdDBG"
  63.        ModuleName="./Contents/Resources/DWGMgdDbgSource/bin/Debug2013/MgdDbg.dll"
  64.        Version="1.0.0"/>
  65.     </ComponentEntry>
  66.   </Components>
  67. </ApplicationPackage>
  68.  
  69.  

Any ideas why the LocalName is not being recognised ??


Regards
Kerry


Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on April 25, 2012, 10:56:48 AM
I can't remeber all them but in
MgdDbg.Snoop.CollectorExts
 
 
 
                 else if ((typeCode >= 90) && (typeCode <= 99)) {
                    dxfCodeStr = string.Format("{0:d}    (long)", typeCode);
Line 482         data.Add(new Snoop.Data.Int(dxfCodeStr, (int)(long)tmpVal.Value));
 
 
The (long) cast needs to be removed.
 
There was something with mleaders where values were null and throwing a exception and will try to find it.
I think a couple more but a very useful tool.
 
Title: Re: AutoLoader for MgdDbg
Post by: MexicanCustard on April 25, 2012, 11:03:14 AM
I can't remeber all them but in
MgdDbg.Snoop.CollectorExts
 
 
 
                 else if ((typeCode >= 90) && (typeCode <= 99)) {
                    dxfCodeStr = string.Format("{0:d}    (long)", typeCode);
Line 482         data.Add(new Snoop.Data.Int(dxfCodeStr, (int)(long)tmpVal.Value));
 
 
The (long) cast needs to be removed.
 
There was something with mleaders where values were null and throwing a exception and will try to find it.
I think a couple more but a very useful tool.

I second Jeff, I just found this today while playing with MLeaders.  I get and eInvlaidContext exception anytime I try to snoop a MLeader object.
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on April 25, 2012, 11:04:27 AM
I will look back in 2012 version and see what I did to get it working.
**************Edit*********************
In MgdDbg.Snoop.CollectorExts.Entity starting at line 892
Code - C#: [Select]
  1.  
  2.              data.Add(new Snoop.Data.Double("Arrow size", mleader.ArrowSize));
  3.             data.Add(new Snoop.Data.ObjectId("Arrow symbol Id", mleader.ArrowSymbolId));
  4.             data.Add(new Snoop.Data.Object("Block color", mleader.BlockColor));
  5.             data.Add(new Snoop.Data.String("Block connection type", mleader.BlockConnectionType.ToString()));
  6.             data.Add(new Snoop.Data.ObjectId("Block content Id", mleader.BlockContentId));
  7. 897       data.Add(new Snoop.Data.Point3d("Block position", mleader.BlockPosition));
  8.             data.Add(new Snoop.Data.Double("Block rotation", mleader.BlockRotation));
  9.             data.Add(new Snoop.Data.Scale3d("Block scale", mleader.BlockScale));
  10.             data.Add(new Snoop.Data.String("Content type", mleader.ContentType.ToString()));
  11.             data.Add(new Snoop.Data.Double("Dogleg length", mleader.DoglegLength));
  12.             data.Add(new Snoop.Data.Bool("Enable annotation scale", mleader.EnableAnnotationScale));
  13.             data.Add(new Snoop.Data.Bool("Enable dogleg", mleader.EnableDogleg));
  14.             data.Add(new Snoop.Data.Bool("Enable frame text", mleader.EnableFrameText));
  15.             data.Add(new Snoop.Data.Bool("Enable landing", mleader.EnableLanding));
  16.             data.Add(new Snoop.Data.Double("Landing gap", mleader.LandingGap));
  17.             data.Add(new Snoop.Data.Int("Leader count", mleader.LeaderCount));
  18.             data.Add(new Snoop.Data.Object("Leader line color", mleader.LeaderLineColor));
  19.             data.Add(new Snoop.Data.Int("Leader line count", mleader.LeaderLineCount));
  20.             data.Add(new Snoop.Data.String("Leader line type", mleader.LeaderLineType.ToString()));
  21.             data.Add(new Snoop.Data.ObjectId("Leader line type Id", mleader.LeaderLineTypeId));
  22.             data.Add(new Snoop.Data.String("Leader line weight", mleader.LeaderLineWeight.ToString()));
  23.             data.Add(new Snoop.Data.ObjectId("MLeader style", mleader.MLeaderStyle));
  24.             data.Add(new Snoop.Data.Object("MText", mleader.MText));
  25.             data.Add(new Snoop.Data.Vector3d("Normal", mleader.Normal));
  26.             data.Add(new Snoop.Data.String("Text alignment type", mleader.TextAlignmentType.ToString()));
  27.             data.Add(new Snoop.Data.String("Text angle type", mleader.TextAngleType.ToString()));
  28.             data.Add(new Snoop.Data.String("Text attachment type", mleader.TextAttachmentType.ToString()));
  29.             data.Add(new Snoop.Data.Object("Text color", mleader.TextColor));
  30.             data.Add(new Snoop.Data.Double("Text height", mleader.TextHeight));
  31.             data.Add(new Snoop.Data.Point3d("Text location", mleader.TextLocation));
  32.             data.Add(new Snoop.Data.ObjectId("Text style Id", mleader.TextStyleId));
  33.             data.Add(new Snoop.Data.Point3d("Tolerance location", mleader.ToleranceLocation));
  34.  

Need to add logic to check if it contains a Block or Mtext so it errors out at 897 if it contains Mtext since BlockPosition is not valid and if it contains a Block then it errors out on some the Mtext porperties
Title: Re: AutoLoader for MgdDbg
Post by: Kerry on April 26, 2012, 06:27:55 AM
Colour me embarrased  :oops:

I should have had a closer look at the source code.

Here's a typical example of the CommandMethodAttribute constructor used.

 
Code - C#: [Select]
  1.        
  2.         //[CommandMethod("MgdDbg", "MgdDbgSnoopDb", "SnoopDb", CommandFlags.Modal)]
  3.         [CommandMethod("MgdDbgSnoopDb", CommandFlags.Modal)]
  4.        
  5.         public void
  6.         SnoopDatabase()
  7.         {
  8.             Database db = AcadApp.DocumentManager.MdiActiveDocument.Database;
  9.  
  10.             using (TransactionHelper trHlp = new TransactionHelper(db)) {
  11.                 trHlp.Start();
  12.                
  13.                 Snoop.Forms.Database dbox = new Snoop.Forms.Database(db, trHlp);
  14.                 dbox.Text = db.Filename;
  15.                 AcadApp.ShowModalDialog(dbox);
  16.                
  17.                 trHlp.Commit();
  18.             }
  19.         }

You'll notice that the full constructor has been commented out and a light constructor used.

ie in place of
Code - C#: [Select]
  1. public CommandMethodAttribute(
  2.     string groupName,
  3.     string globalName,
  4.     string localizedNameId,
  5.     CommandFlags flags
  6. );

this was used
Code - C#: [Select]
  1. public CommandMethodAttribute(
  2.     string globalName,
  3.     CommandFlags flags
  4. );

Silly me ...
In the XML I've declared the Global name and the Local name which aren't defined in the code, so they can't be used.
... only the Global Name is used .
I've left the redundant expressions in the XML for the time being.

... at least that's the way I read the situation.


This is the  PackageContents.xml  I'm using
Code - XML: [Select]
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--reworked by kdub@theSwamp 2012.04.26-->
  3. <!--http://www.theswamp.org/index.php?topic=41576.0-->
  4. <!--fileName :  %AppData%\Autodesk\ApplicationPlugins\Autodesk DWG MgdDBG.bundle\PackageContents.xml-->
  5. <ApplicationPackage
  6.  AppNameSpace="adn.exchange.autodesk.com"
  7.  AppVersion="1.0.0"
  8.  Author="Fenton Webb"
  9.  AutodeskProduct="AutoCAD"
  10.  Description="Debugging tools for AutoCAD - MgdDBG"
  11.  HelpFile="./Contents/Resources/helpfile.html"
  12.  Icon="./Contents/Resources/resource/Inspector.jpg"
  13.  Name="DWG MgdDBG"
  14.  OnlineDocumentation=" "
  15.  ProductCode="{DB35F952-289A-4453-A46D-B424A6FCFDFB}"
  16.  ProductType="Application"
  17.  SchemaVersion="1.0"
  18.  SupportedLocales="Enu"
  19.  UpgradeCode="{E5B78003-2D7B-490F-B947-65D804392151}">
  20.   <CompanyDetails
  21.    Email=" adn.autodesk.com"
  22.    Name="Autodesk"
  23.    Phone=" "
  24.    Url=" www.autodesk.com"/>
  25.   <RuntimeRequirements
  26.    OS="Win32|Win64"
  27.    Platform="AutoCAD|AutoCAD*"
  28.    SeriesMax="R19.0"
  29.    SeriesMin="R18.2"/>
  30.   <Components
  31.    Description="AutoCAD 2012">
  32.     <RuntimeRequirements
  33.      OS="Win32|Win64"
  34.      Platform="AutoCAD*|AutoCAD"
  35.      SeriesMax="R18.2"
  36.      SeriesMin="R18.2"/>
  37.  
  38.     <ComponentEntry
  39.      AppDescription="Debugging tools for AutoCAD - MgdDBG"
  40.      AppName="DWGMgdDBG"
  41.      LoadOnCommandInvocation="True"
  42.      ModuleName="./Contents/Resources/DWGMgdDbgSource/bin/Debug2012/MgdDbg.dll"
  43.      Version="1.0.0">
  44.  
  45.       <Commands
  46.        GroupName="MgdDbg">
  47.         <Command
  48.          Global="MgdDbgSnoopDb"
  49.          Local="MgdDbgSnoopDb"/>
  50.         <Command
  51.          Global="MgdDbgSnoopEd"
  52.          Local="MgdDbgSnoopEd"/>
  53.       </Commands>
  54.     </ComponentEntry>
  55.  
  56.     <ComponentEntry
  57.      Description="AutoCAD 2013">
  58.       <RuntimeRequirements
  59.        OS="Win32|Win64"
  60.        Platform="AutoCAD*|AutoCAD"
  61.        SeriesMax="R19.0"
  62.        SeriesMin="R19.0"/>
  63.       <ComponentEntry
  64.        AppDescription="Debugging tools for AutoCAD - MgdDBG"
  65.        AppName="DWGMgdDBG"
  66.        ModuleName="./Contents/Resources/DWGMgdDbgSource/bin/Debug2013/MgdDbg.dll"
  67.        Version="1.0.0"/>
  68.     </ComponentEntry>
  69.  
  70.   </Components>
  71. </ApplicationPackage>
  72.  

Regards
Kerry
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on May 03, 2012, 01:18:36 AM
You probably have figured it out but here is the quick fix for mleaders with mgddbg
In the Snoop-> CollectorExts folder inside Entity class
Just added some if statements to check ContentType
starting at line 887
Code - C#: [Select]
  1.  
  2.          private void
  3.         Stream(ArrayList data, MLeader mleader)
  4.         {
  5.             data.Add(new Snoop.Data.ClassSeparator(typeof(MLeader)));
  6.             data.Add(new Snoop.Data.Double("Arrow size", mleader.ArrowSize));
  7.             data.Add(new Snoop.Data.ObjectId("Arrow symbol Id", mleader.ArrowSymbolId));
  8.             data.Add(new Snoop.Data.Object("Block color", mleader.BlockColor));
  9.             data.Add(new Snoop.Data.String("Block connection type", mleader.BlockConnectionType.ToString()));
  10.             data.Add(new Snoop.Data.ObjectId("Block content Id", mleader.BlockContentId));
  11.             if (mleader.ContentType == ContentType.BlockContent)
  12.             {
  13.                 data.Add(new Snoop.Data.Point3d("Block position", mleader.BlockPosition));
  14.                 data.Add(new Snoop.Data.Double("Block rotation", mleader.BlockRotation));
  15.             }        
  16.             data.Add(new Snoop.Data.Scale3d("Block scale", mleader.BlockScale));
  17.             data.Add(new Snoop.Data.String("Content type", mleader.ContentType.ToString()));
  18.             data.Add(new Snoop.Data.Double("Dogleg length", mleader.DoglegLength));
  19.             data.Add(new Snoop.Data.Bool("Enable annotation scale", mleader.EnableAnnotationScale));
  20.             data.Add(new Snoop.Data.Bool("Enable dogleg", mleader.EnableDogleg));
  21.             data.Add(new Snoop.Data.Bool("Enable frame text", mleader.EnableFrameText));
  22.             data.Add(new Snoop.Data.Bool("Enable landing", mleader.EnableLanding));
  23.             data.Add(new Snoop.Data.Double("Landing gap", mleader.LandingGap));
  24.             data.Add(new Snoop.Data.Int("Leader count", mleader.LeaderCount));
  25.             data.Add(new Snoop.Data.Object("Leader line color", mleader.LeaderLineColor));
  26.             data.Add(new Snoop.Data.Int("Leader line count", mleader.LeaderLineCount));
  27.             data.Add(new Snoop.Data.String("Leader line type", mleader.LeaderLineType.ToString()));
  28.             data.Add(new Snoop.Data.ObjectId("Leader line type Id", mleader.LeaderLineTypeId));
  29.             data.Add(new Snoop.Data.String("Leader line weight", mleader.LeaderLineWeight.ToString()));
  30.             data.Add(new Snoop.Data.ObjectId("MLeader style", mleader.MLeaderStyle));
  31.             if (mleader.ContentType == ContentType.MTextContent)
  32.             {
  33.                 data.Add(new Snoop.Data.Object("MText", mleader.MText));
  34.             }
  35.             else
  36.             {
  37.                 data.Add(new Snoop.Data.Object("MText", null));
  38.             }
  39.             data.Add(new Snoop.Data.Vector3d("Normal", mleader.Normal));
  40.             data.Add(new Snoop.Data.String("Text alignment type", mleader.TextAlignmentType.ToString()));
  41.             data.Add(new Snoop.Data.String("Text angle type", mleader.TextAngleType.ToString()));
  42.             data.Add(new Snoop.Data.String("Text attachment type", mleader.TextAttachmentType.ToString()));
  43.             data.Add(new Snoop.Data.Object("Text color", mleader.TextColor));
  44.             data.Add(new Snoop.Data.Double("Text height", mleader.TextHeight));
  45.             if (mleader.ContentType == ContentType.MTextContent)
  46.             {
  47.                 data.Add(new Snoop.Data.Point3d("Text location", mleader.TextLocation));
  48.             }
  49.             if (mleader.ContentType == ContentType.ToleranceContent)
  50.             {
  51.                 data.Add(new Snoop.Data.Point3d("Tolerance location", mleader.ToleranceLocation));  
  52.             }
  53.             data.Add(new Snoop.Data.ObjectId("Text style Id", mleader.TextStyleId));
  54.                      
  55.         }
  56.  
Title: Re: AutoLoader for MgdDbg
Post by: Kerry on May 03, 2012, 04:40:31 AM

Thanks Jeff,
I'll have a play over the weekend.

Perhaps one of the ADN Dev peeps will grab it and update the download source :)

Regards
Kerry
Title: Re: AutoLoader for MgdDbg
Post by: KewlToyZ on May 10, 2012, 10:07:47 PM
Thanks this is going to help me a lot!
Title: Re: AutoLoader for MgdDbg
Post by: Kerry on May 10, 2012, 10:33:56 PM

You're welcome.

In the 'early days' the source for this was a BIG help in grocking the API.
We have Jim Awe at AutoDesk to thank really ... thanks Jim :)

Regards
Title: Re: AutoLoader for MgdDbg
Post by: kvstone on December 01, 2012, 04:36:45 AM
It's really useful, unfortunately it's not for autocad2008(my company need use this version for some reason)
Title: Re: AutoLoader for MgdDbg
Post by: MexicanCustard on October 29, 2013, 08:16:17 AM
Does anybody have a working version for 2014? I downloaded the 2012/2013 installer link at the beginning of this thread.  I had to change the RuntimeComponent Max to "19.1". That gets it to load up but I'm still getting errors when I try to inspect Polylines and Mleaders.  The installer does not install the 2013 source code just the 2008 and 2010 versions.

I would really like to avoid converting the 2010 source code if I can.
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on October 29, 2013, 01:16:19 PM
... I'm still getting errors when I try to inspect Polylines and Mleaders.

See comments at the bottom of this DevBlog article (http://adndevblog.typepad.com/autocad/2012/04/dwg-debugger-mgddbg-app-for-autocad-20122013.html) for some encouragement.  :-P



Separately, if ArxDbg might help, here's (http://www.theswamp.org/index.php?topic=44028.0) an Autoloader .bundle for the most recent build I know of for this utility.

HTH
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on October 29, 2013, 03:34:15 PM
I do not use 2014 much yet but opened up 2014 and this works for polylines & mleaders in 2014 and the same bundle used for 2013 & 2012.
 
4MB so here is a dropbox link
 
https://dl.dropboxusercontent.com/u/17374049/Autodesk%20DWG%20MgdDBG.bundle.zip (https://dl.dropboxusercontent.com/u/17374049/Autodesk%20DWG%20MgdDBG.bundle.zip)
 
 
 
Title: Re: AutoLoader for MgdDbg
Post by: WILL HATCH on October 29, 2013, 04:28:43 PM
Hows this for interesting Jeff:
Code - XML: [Select]
  1. -<AppCDATA>
  2. <![CDATA[Command: CLOSE Clr Data: at MgdDbg.Utils.AcadUi.PrintToCmdLine(String str) in C:\Users\jhornsby\AppData\Roaming\Autodesk\ApplicationPlugins\Autodesk DWG MgdDBG.bundle\Contents\Resources\DWGMgdDbgSource\Utils\AcadUi.cs:line 57 at MgdDbg.Reactors.Events.DocumentMgrEvents.PrintEventMessage(String eventStr, String msg) in C:\Users\jhornsby\AppData\Roaming\Autodesk\ApplicationPlugins\Autodesk DWG MgdDBG.bundle\Contents\Resources\DWGMgdDbgSource\Reactors\Events\DocumentMgrEvents.cs:line 197 at MgdDbg.Reactors.Events.DocumentMgrEvents.event_DocumentDestroyed(Object sender, DocumentDestroyedEventArgs e) in C:\Users\jhornsby\AppData\Roaming\Autodesk\ApplicationPlugins\Autodesk DWG MgdDBG.bundle\Contents\Resources\DWGMgdDbgSource\Reactors\Events\DocumentMgrEvents.cs:line 138 at CDocCollReactorImpl.FireDocumentDestroyed(CDocCollReactorImpl* , Char* fileName) ]]>
  3. </AppCDATA>
it's somehow telling me the files are on your computer
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on October 29, 2013, 04:52:57 PM
Did you rebuild it?
 
If not it might have something to do with MgdDbg.pdb files being included?
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on October 29, 2013, 10:48:08 PM
For fun could create our own and call it SnooperPooper.
If you have ever looked at autocad's managed assemblies with Reflector or ILSpy I am sure you have seen all those Categories Attributes.
 
With no customizing and just adding a PropertyGrid (http://wpftoolkit.codeplex.com/wikipage?title=PropertyGrid&referringTitle=Documentation) from Extended WPF Toolkit™ Community Edition (http://wpftoolkit.codeplex.com/) you get this much from 1 line of code or setting its selected object property.
 
(http://i1221.photobucket.com/albums/dd473/Jeffrey_H/SnooperPooper_zpsa8d380de.png)
 
 
Code - C#: [Select]
  1.     public partial class PropWindow : Window
  2.     {
  3.         public PropWindow()
  4.         {
  5.             InitializeComponent();
  6.             propGrid.IsReadOnly = true;
  7.         }
  8.         public PropWindow(DBObject dbo) : this()
  9.         {
  10.             propGrid.SelectedObject = dbo;
  11.         }
  12.     }
  13.  
Xaml
Code - XML: [Select]
  1.  
  2.  <Window x:Class="_Alpha_HpadCad.App.UI.Windows.PropWindow"
  3.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  6.        Title="PropWindow" Height="388.083" Width="517.322">
  7.     <Grid Margin="1,1,1,1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
  8.         <xctk:PropertyGrid x:Name="propGrid" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="1,1,1,1">
  9.         </xctk:PropertyGrid>
  10.     </Grid>
  11. </Window>
  12.  
Title: Re: AutoLoader for MgdDbg
Post by: WILL HATCH on October 29, 2013, 10:49:42 PM
I did not, you're probably right. I was using it to monitor all events when I closed autocad and it crashed. Best guess is there wasn't an editor to write out the data.
Title: Re: AutoLoader for MgdDbg
Post by: WILL HATCH on October 29, 2013, 10:51:54 PM
Very nice, your usage of wpf always impresses
Title: Re: AutoLoader for MgdDbg
Post by: Kerry on October 30, 2013, 12:10:06 AM

Just running past Jeff ..
Have you changed your build to use the WPF?

I'll have a look when I get a chance, but you'll probably answer before that happens :-)
Title: Re: AutoLoader for MgdDbg
Post by: gile on May 20, 2014, 08:50:27 AM
Hi,

I finally took the time to update this tool for 2014 and 2015 versions . I did not make an installer, just extract the folder "Autodesk DWG MgdDBG.bundle" in the directory plug-ins: "%appdata%\Autodesk\Plug-ins" (rename the previous folder if it was already installed).

I have not thoroughly tested or corrected all existing bugs in the original version. I only did the necessary changes to compile the DLLs with the libraries of each version from AutoCAD 2012 to 2015.

Download MgdDgb.zip (http://gilecad.azurewebsites.net/DotNet/MgdDbg.zip).

<EDIT> repared above link.
Title: Re: AutoLoader for MgdDbg
Post by: Keith Brown on May 20, 2014, 03:28:27 PM
Hi Gile,


Thanks for updating for 2015.  I tried to download the file and it is not found on your server.
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on May 20, 2014, 04:02:58 PM
Hi Gile,


Thanks for updating for 2015.  I tried to download the file and it is not found on your server.

FWIW - I downloaded it from here (http://forums.augi.com/showthread.php?156005-MgdDbg-for-AutoCAD-2015) earlier today.
Title: Re: AutoLoader for MgdDbg
Post by: gile on May 20, 2014, 04:13:56 PM
I repared the link.
Title: Re: AutoLoader for MgdDbg
Post by: huiz on July 17, 2015, 07:13:57 AM
Hi,

I finally took the time to update this tool for 2014 and 2015 versions . I did not make an installer, just extract the folder "Autodesk DWG MgdDBG.bundle" in the directory plug-ins: "%appdata%\Autodesk\Plug-ins" (rename the previous folder if it was already installed).

I have not thoroughly tested or corrected all existing bugs in the original version. I only did the necessary changes to compile the DLLs with the libraries of each version from AutoCAD 2012 to 2015.



Thanks to the effort by gile, it was quite easy to rebuild this for 2016.

Here you can download  (https://drive.google.com/file/d/0B-yYJaopU61qTzFRM3FycHRfbjA/view?usp=sharing)the complete source and bundle data. I also did not create an installer, just save the bundle at the location described above.


edit: Another download link
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on July 17, 2015, 08:55:52 AM
Hi,

I finally took the time to update this tool for 2014 and 2015 versions . I did not make an installer, just extract the folder "Autodesk DWG MgdDBG.bundle" in the directory plug-ins: "%appdata%\Autodesk\Plug-ins" (rename the previous folder if it was already installed).

I have not thoroughly tested or corrected all existing bugs in the original version. I only did the necessary changes to compile the DLLs with the libraries of each version from AutoCAD 2012 to 2015.


Thanks to the effort by gile, it was quite easy to rebuild this for 2016.

Here you can download (http://files.huiz.net/public.php?service=files&t=c9620f6488d2617c9d620fd2dc14a619&download) the complete source and bundle data. I also did not create an installer, just save the bundle at the location described above.

Merci, Gilles... Y gracias, Henrique! :-)
Title: Re: AutoLoader for MgdDbg
Post by: gile on July 18, 2015, 05:23:44 AM
Hi,

Thank you for the update, huiz.
I had not done it because I am angry with AutoCAD 2016 as it will not have solved the problem with customized osnaps.
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on July 18, 2015, 09:41:30 AM
... I am angry with AutoCAD 2016 as it will not have solved the problem with customized osnaps.

Despite my efforts, I know that AutoCAD 2016 implemented a new GCE (Geometric Center, aka "Gilles Chanteau Emulator" - similar to the original [CTR], but not as good with overlapping geometry :-)).

I've been a big fan of your Custom OSNAPs app since learning of it (2009 version?); not sure that I can help you, but curious to understand more about what's causing an issue with it.

Cheers
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on July 18, 2015, 12:00:49 PM
I know it killed one of the biggest timer savers I had for people at work.
Title: Re: AutoLoader for MgdDbg
Post by: huiz on July 19, 2015, 09:17:13 AM
Hi,

Thank you for the update, huiz.
I had not done it because I am angry with AutoCAD 2016 as it will not have solved the problem with customized osnaps.


Thank you too for the work you've done for the 2015 version. I only needed to define a new constant and add it to the #ifs.

Unfortunately the AutoCAD 2016 release is buggy, they also "repaired" features that were not broken. Like the Fatal error that occurs when loading a large amount of images, in the 2015 release that still worked. And the weird stuff, like the Start document that can't be closed but acts like a true document when you want the opened drawings tiled.

Well anyway we have to deal with it and keep hope for a better release next year :-)
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on July 19, 2015, 10:02:32 AM
Hi,

Thank you for the update, huiz.
I had not done it because I am angry with AutoCAD 2016 as it will not have solved the problem with customized osnaps.


Thank you too for the work you've done for the 2015 version. I only needed to define a new constant and add it to the #ifs.

Unfortunately the AutoCAD 2016 release is buggy, they also "repaired" features that were not broken. Like the Fatal error that occurs when loading a large amount of images, in the 2015 release that still worked. And the weird stuff, like the Start document that can't be closed but acts like a true document when you want the opened drawings tiled.

Well anyway we have to deal with it and keep hope for a better release next year :-)

You should share that here :-) :

https://beta.autodesk.com
Title: Re: AutoLoader for MgdDbg
Post by: Jeff H on July 22, 2015, 12:16:12 AM
Hi,

Thank you for the update, huiz.
I had not done it because I am angry with AutoCAD 2016 as it will not have solved the problem with customized osnaps.
Revit 2016 came out after AutoCAD and they have released service pack 2 for revit 2016
Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on July 25, 2015, 06:14:04 PM
Hi,

I finally took the time to update this tool for 2014 and 2015 versions . I did not make an installer, just extract the folder "Autodesk DWG MgdDBG.bundle" in the directory plug-ins: "%appdata%\Autodesk\Plug-ins" (rename the previous folder if it was already installed).

I have not thoroughly tested or corrected all existing bugs in the original version. I only did the necessary changes to compile the DLLs with the libraries of each version from AutoCAD 2012 to 2015.



Thanks to the effort by gile, it was quite easy to rebuild this for 2016.

Here you can download (http://files.huiz.net/public.php?service=files&t=c9620f6488d2617c9d620fd2dc14a619&download) the complete source and bundle data. I also did not create an installer, just save the bundle at the location described above.

FYI - I went to download this just now, and receive a 'service unavailable' message.
Title: Re: AutoLoader for MgdDbg
Post by: huiz on July 26, 2015, 05:41:42 AM
..

FYI - I went to download this just now, and receive a 'service unavailable' message.

Hm, my OwnCloud installation hanged on an update. After the update it is completely corrupted.

Here is a new download link: https://drive.google.com/file/d/0B-yYJaopU61qTzFRM3FycHRfbjA/view?usp=sharing

Title: Re: AutoLoader for MgdDbg
Post by: BlackBox on July 30, 2015, 04:48:32 PM
..

FYI - I went to download this just now, and receive a 'service unavailable' message.

Hm, my OwnCloud installation hanged on an update. After the update it is completely corrupted.

No worries; I've only now even had a spare minute to revisit - Thanks for all of your help, my friend!

Cheers