.NET

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

MLeader landing rotation

201 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: 256
Registered: ‎04-15-2011
Message 2 of 3 (194 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: 256
Registered: ‎04-15-2011
Message 3 of 3 (172 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.