.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating Multileader Style

3 REPLIES 3
Reply
Message 1 of 4
wrbielski
384 Views, 3 Replies

Creating Multileader Style

When creating a multileader style is there a way to set the right attachment type using .net. I can set the left attachment type by ml.textattachmenttype = textattachmentype.attachmiddle but I can't find a way to set the left attachment type.

Thanks
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: wrbielski

See the code here:

http://www.caddzone.com/MLeaderStyleHelper.cs

Note that because that code using P/Invoke, it can be release- and
platform-specific, and may require different EntryPoint signatures for
different platforms.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6294687@discussion.autodesk.com...
When creating a multileader style is there a way to set the right attachment
type using .net. I can set the left attachment type by ml.textattachmenttype
= textattachmentype.attachmiddle but I can't find a way to set the left
attachment type.

Thanks
Message 3 of 4
wrbielski
in reply to: wrbielski

Tony

Thanks - It works great. I don't understand it, but maybe some day.

Thaks again....
Message 4 of 4
Anonymous
in reply to: wrbielski

I see that this problem has already been solved; regardless, I wanted to post what worked for me:

{code}
Dim mStyle as MLeaderStyle = New MLeaderStyle
mStyle.SetTextAttachmentType(TextAttachmentType.AttachmentMiddle, LeaderDirectionType.LeftLeader)
mStyle.SetTextAttachmentType(TextAttachmentType.AttachmentMiddle, LeaderDirectionType.RightLeader)
mStyle.SetTextAttachmentType(TextAttachmentType.AttachmentMiddle, LeaderDirectionType.BottomLeader)
mStyle.SetTextAttachmentType(TextAttachmentType.AttachmentMiddle, LeaderDirectionType.TopLeader)
mStyle.SetTextAttachmentType(TextAttachmentType.AttachmentMiddle, LeaderDirectionType.UnknownLeader)
{code}

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost