.NET

Reply
Mentor
SRSDS
Posts: 250
Registered: ‎04-15-2011
Message 1 of 3 (195 Views)
Accepted Solution

MLeader landing rotation

195 Views, 2 Replies
06-12-2013 01:10 PM

Hi,

I have an mleader with a single vertices point.

There's a thing called a doglength which enables a grip point that allows the leader to be repositioned.

 

                Dim ml As MLeader = TryCast(Entity, MLeader)
                ml.SetDatabaseDefaults()
                m_leaderIndex = ml.AddLeader()
                m_leaderLineIndex = 0
                ml.SetDoglegLength(m_leaderLineIndex, 2.5)

 I have a problem with the dogleg length in that I can't rotate it according to the current UCS. Is this possible?

 

Found it.  ml.SetDogleg(0, New Vector3d(plan, vector))

Mentor
SRSDS
Posts: 250
Registered: ‎04-15-2011
Message 2 of 3 (188 Views)

Re: MLeader landing rotation

06-12-2013 01:57 PM in reply to: SRSDS

Sorry, I think I know..

I need to transfrom the mleader by the rotation. 

Mentor
SRSDS
Posts: 250
Registered: ‎04-15-2011
Message 3 of 3 (166 Views)

Re: MLeader landing rotation

06-13-2013 09:58 AM in reply to: SRSDS

Found it.  ml.SetDogleg(0, New Vector3d(plan, vector))

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!