.NET

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

MLeader landing rotation

191 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 (184 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 (162 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
Need installation help?

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