Results 1 to 2 of 2

Thread: closed filled arrow head bug when creating new multileader style

  1. #1
    Member
    Join Date
    2013-01
    Posts
    18
    Login to Give a bone
    0

    Default closed filled arrow head bug when creating new multileader style

    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

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: closed filled arrow head bug when creating new multileader style

    Can you change it manually? Does the block exist in the dwg?
    C:> ED WORKING....

Similar Threads

  1. Creating Multileader Style using LISP
    By vladimir.karatsupa982899 in forum AutoLISP
    Replies: 11
    Last Post: 2018-03-08, 05:44 PM
  2. Modify Multileader Arrow Size
    By Borgster in forum AutoLISP
    Replies: 13
    Last Post: 2012-01-09, 10:28 PM
  3. Replies: 10
    Last Post: 2010-03-11, 12:49 PM
  4. Multileader arrow disappears
    By noah in forum AutoCAD General
    Replies: 3
    Last Post: 2008-03-26, 11:22 AM
  5. Replies: 3
    Last Post: 2004-08-13, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •