brendan.j.mallon
2009-10-30, 02:28 AM
I'm trying to create a layer and in addition to the usual suspects (Colour, Linetype, Lineweight), I'm also trying to set a Plot Style and a Description.
I'm all fine for the colour, linetype and lineweight, but the PlotStyleName setting generates an "eNoDatabase" error and the Description doesn't error, but doesn't do anything either.
I've attached my code in LayerTools.txt. Can anyone suggest what I'm missing?
I'm using Visual Studio 2008, I've hooked up the acdbmgd.dll and acmgd.dll files from ObjectARX 2010, and I'm running it in AutoCAD 2010 (just to state the obvious), although I've generated the same thing in AutoCAD 2009 (by referencing the relevant dll's of course).
I'm all fine for the colour, linetype and lineweight, but the PlotStyleName setting generates an "eNoDatabase" error and the Description doesn't error, but doesn't do anything either.
I've attached my code in LayerTools.txt. Can anyone suggest what I'm missing?
I'm using Visual Studio 2008, I've hooked up the acdbmgd.dll and acmgd.dll files from ObjectARX 2010, and I'm running it in AutoCAD 2010 (just to state the obvious), although I've generated the same thing in AutoCAD 2009 (by referencing the relevant dll's of course).