Overrule problem
in 3D Modeling
Following program seems to run normally.
But visual studio debug output telling me this warnings.
Forgot to call Dispose? (Teigha.DatabaseServices.AlignedDimension): DisposableWrapper
How can I avoid this warnings?
[code]
But visual studio debug output telling me this warnings.
Forgot to call Dispose? (Teigha.DatabaseServices.AlignedDimension): DisposableWrapper
How can I avoid this warnings?
[code]
Friend Shared testOverrule As myOverruler = Nothing<</span>CommandMethod("test")>Public Shared Sub Test() If testOverrule Is Nothing Then testOverrule = New myOverruler() Overrule.AddOverrule(RXObject.GetClass(GetType(Dimension)), testOverrule, True) Overrule.Overruling = True Else Overrule.RemoveOverrule(RXObject.GetClass(GetType(Dimension)), testOverrule) Overrule.Overruling = False testOverrule = Nothing End If Application.DocumentManager.MdiActiveDocument.Editor.Regen()End Sub Public Class myOverruler : Inherits DrawableOverrule Public Overrides Function WorldDraw(drawable As Drawable, wd As WorldDraw) As Boolean Using dimObj = TryCast(drawable, Dimension) wd.SubEntityTraits.TrueColor = New Colors.EntityColor(255, 0, 0) Return MyBase.WorldDraw(dimObj, wd) End Using End Function End Class
[/code]
0