.NET

Reply
Contributor
mlovitt
Posts: 12
Registered: ‎05-19-2005
Message 1 of 1 (107 Views)

Assign a built-in arrowhead to a Leader object?

107 Views, 0 Replies
01-02-2006 08:57 PM
I want to change the arrowhead of a leader object to one of the built-in arrowhead types.

My code looks like this:

Leader myLeader = new Leader();
using (Transaction t = tm.StartTransaction())
{
BlockTable blockTable = (BlockTable) t.GetObject(db.BlockTableId, OpenMode.ForRead);
myLeader.Dimldrblk = blockTable["_Dot"];
}

But it doesn't work, because the block table doesn't yet contain the "_Dot" block table record. What I really want is an equivalent of the AcDbLeader::setDimldrblk ObjectARX function. From the docs:

-----
virtual Acad::ErrorStatus setDimldrblk(const char* val);
Sets a DIMLDRBLK override on this leader to the block reference named val. If val is the name of a built-in arrowhead, the block and block reference will be created if necessary.
-----

The .NET Leader class has no such method (that I can find). How else can I make this happen?

Michael
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!