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

Jig and Orthomode

6 REPLIES 6
Reply
Message 1 of 7
hanauer
689 Views, 6 Replies

Jig and Orthomode

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.
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: hanauer

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.
Message 3 of 7
hanauer
in reply to: hanauer

Sorry for my bad english.
Yes, the rubber-band is draggig always from the leader last vertice (basepoint) to the current cursor position.
Message 4 of 7
hanauer
in reply to: hanauer

I solved!
Thanks Tony, for the tips.
Message 5 of 7
jgeerwm
in reply to: hanauer

Hanauer, could you post the fix please?

Jeff
Message 6 of 7
hanauer
in reply to: hanauer

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);
}
Message 7 of 7
jgeerwm
in reply to: hanauer

Thank you Hanauer

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