Message 1 of 3
Mtext Jig Issue or an alternative Mtext Jig getting Base point only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have Mtext Jig whereas, having some error during long time run in while loop. Can you please, suggest the correct one or how can it make as bugs free ?
public class MTextJig : EntityJig { MText mtext; Point3d basePt, dragPt; public MTextJig(MText mtext) : base(mtext) { this.mtext = mtext; basePt = mtext.Location; } protected override SamplerStatus Sampler(JigPrompts prompts) { var options = new JigPromptPointOptions("\nInsertion point: "); options.BasePoint = basePt; options.UseBasePoint = true; options.UserInputControls = UserInputControls.Accept3dCoordinates | UserInputControls.NullResponseAccepted | UserInputControls.UseBasePointElevation; var result = prompts.AcquirePoint(options); if (result.Value.IsEqualTo(dragPt)) return SamplerStatus.NoChange; dragPt = result.Value; return SamplerStatus.OK; } protected override bool Update() { mtext.Location = dragPt; return true; } }
Thanks in Advance...