.NET

Reply
Mentor
256 Posts
4 Kudos
Registered: ‎04-15-2011
Post 1 of 3
Accepted Solution

MLeader landing rotation

210 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
256 Posts
4 Kudos
Registered: ‎04-15-2011
Post 2 of 3

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
256 Posts
4 Kudos
Registered: ‎04-15-2011
Post 3 of 3

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 interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!