Hello and happy new year
when i ran my program i got this message
eInvalidInput
at
Autodesk.AutoCAD.ApplicationServices.Core.Application.SetSystemVariable(String name, Object value)
at this line
Autodesk.AutoCAD.ApplicationServices.Application.SetSystemVariable("DIMBLK", "_Closedfilled")
but it's happened only with the closed filled arrow and works well with ALL other types of the arrowhead
like _Dot, _Closedblank,.......
here is the code
' Make the arrow head as _Closedfilled.
Dim mldstyle As New MLeaderStyle()
Dim blockTable As BlockTable = tr.GetObject(db.BlockTableId, OpenMode.ForRead)
If (Not blockTable.Has("_Closedfilled")) Then
' load the "_DOT" block definition
Autodesk.AutoCAD.ApplicationServices.Application.SetSystemVariable("DIMBLK", "_Closedfilled")
End If
mldstyle.ArrowSymbolId = blockTable("_Closedfilled")
How to fix it?
and if the answer is to load it at the begin, then how to do it?
i'm needing helps
thank you