Jig and Orthomode

Jig and Orthomode

Anonymous
Not applicable
1,639 Views
6 Replies
Message 1 of 7

Jig and Orthomode

Anonymous
Not applicable
I'm jig a leader with an block in the end of the leader. When the orthomode is set to ON the leader not acquire the corret point. What effect have the UserInputControls.GovernedByOrthoMode?
Can anyone help me?
Thanls in advance.
0 Likes
1,640 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Are you dragging a rubber-band cursor from a basepoint?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5815713@discussion.autodesk.com...
I'm jig a leader with an block in the end of the leader. When the orthomode is set to ON the leader not acquire the corret point. What effect have the UserInputControls.GovernedByOrthoMode?
Can anyone help me?
Thanls in advance.
0 Likes
Message 3 of 7

Anonymous
Not applicable
Sorry for my bad english.
Yes, the rubber-band is draggig always from the leader last vertice (basepoint) to the current cursor position.
0 Likes
Message 4 of 7

Anonymous
Not applicable
I solved!
Thanks Tony, for the tips.
0 Likes
Message 5 of 7

Anonymous
Not applicable
Hanauer, could you post the fix please?

Jeff
0 Likes
Message 6 of 7

Anonymous
Not applicable
Here is the relevant code:
protected override SamplerStatus Sampler(JigPrompts prompts)
{
JigPromptPointOptions opt = new JigPromptPointOptions();
opt.UserInputControls =
(UserInputControls.Accept3dCoordinates
| UserInputControls.NoNegativeResponseAccepted
| UserInputControls.NullResponseAccepted);
if (m_leader == null)
opt.Message = "\nstart point: ";
else
{
// GovernedByOrthoMode is needed for orthomode
opt.UserInputControls |= UserInputControls.GovernedByOrthoMode;
opt.BasePoint = m_leader.VertexAt(m_leader.NumVertices);
// you can't use opt.UseBasePoint = true
// when ortho is on then not works
if (m_leader.IsSplined)
opt.SetMessageAndKeywords(
"\nSpecify Next point or [Line/Undo]: ",
"Line Undo");
else
opt.SetMessageAndKeywords(
"\nSpecify next point or [Spline/Undo]: ",
"Spline Undo");
}

PromptPointResult res = prompts.AcquirePoint(opt);
}
0 Likes
Message 7 of 7

Anonymous
Not applicable
Thank you Hanauer
0 Likes