.NET

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

MLeader landing rotation

182 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: 247
Registered: ‎04-15-2011
Message 2 of 3 (175 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: 247
Registered: ‎04-15-2011
Message 3 of 3 (153 Views)

Re: MLeader landing rotation

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

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.