protected override bool Update() { try { if (m_pts.Count > 0) { // Set the last vertex to the new value MLeader ml = Entity as MLeader; ml.SetLastVertex(m_leaderLineIndex, m_tempPoint); // Adjust the text location Vector3d dogvec = ml.GetDogleg(m_leaderIndex); double doglen = ml.DoglegLength; double landgap = ml.LandingGap; ml.TextLocation = m_tempPoint + ((doglen + landgap) * dogvec); } } catch (System.Exception ex) { Document doc = Application.DocumentManager.MdiActiveDocument; doc.Editor.WriteMessage("\nException: " + ex.Message); return(false); } return(true); }
protected override bool Update() { try { if (_mPts.Count > 0) { // Set the last vertex to the new value MLeader ml = Entity as MLeader; ml.SetLastVertex(_mLeaderLineIndex, _mTempPoint); // Adjust the text location Vector3d dogvec = ml.GetDogleg(_mLeaderIndex); double doglen = ml.DoglegLength; double landgap = ml.LandingGap; ml.TextLocation = _mTempPoint + ((doglen + landgap) * dogvec); } } catch (System.Exception ex) { BaseObjs.writeDebug(string.Format("{0} JigMLeader.cs: line: 207", ex.Message)); } return(true); }