Message 1 of 4
Lisp and Jig - strange points from jig

Not applicable
01-21-2019
06:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, my problem is a little complicated, I think.
I have my custom very simple jig:
Constructor:
PreviewJig::PreviewJig(ArcadiaPreview * entity, bool governedByOrthoMode, AcGePoint3d * pReferencePoint) { m_pEntity = entity; m_flags = (UserInputControls)(AcEdJig::kAcceptOtherInputString | AcEdJig::kDisableDirectDistanceInput); if(governedByOrthoMode) m_flags = (UserInputControls)(m_flags | AcEdJig::kGovernedByOrthoMode); m_pInstance = this; if (pReferencePoint) m_pReferencePoint.reset(new AcGePoint3d(*pReferencePoint)); }
And sampler:
AcEdJig::DragStatus PreviewJig::sampler() { if(m_keywords.length()) setKeywordList(m_keywords.kACharPtr()); setUserInputControls(m_flags); AcEdJig::DragStatus result = AcEdJig::kNormal; if(m_pReferencePoint.get()) result = acquirePoint(m_currentPoint, *m_pReferencePoint.get()); else result = acquirePoint(m_currentPoint); return result; }
Everything works fine, until I load LISP script. LISP calls a command that asks for several points. And the problem is that my jig returns invalid points, for example:
0, 0, 0
0, 0, 0
5, 5, 5
5, 5, 5
instead of:
0, 0, 0
5, 5, 5
Does anyone have any idea?
Of course all the points are inserted in this lisp. User does not give any points.