.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MLeader landing rotation

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
SRSDS
698 Views, 2 Replies

MLeader landing rotation

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?

 

2 REPLIES 2
Message 2 of 3
SRSDS
in reply to: SRSDS

Sorry, I think I know..

I need to transfrom the mleader by the rotation. 

Message 3 of 3
SRSDS
in reply to: SRSDS

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost