Assertion failed: Abort= Quit, Retry= Debug, Ignore= Continue

Assertion failed: Abort= Quit, Retry= Debug, Ignore= Continue

a.kouchakzadeh
Advocate Advocate
177 Views
0 Replies
Message 1 of 1

Assertion failed: Abort= Quit, Retry= Debug, Ignore= Continue

a.kouchakzadeh
Advocate
Advocate

Hello

 

I have encountered an error which looks like this window:

 

akouchakzadeh_0-1739690260866.png

 

I have a jig class. in the sampler method, I get my JigPromptPointOptions from another class which may vary base on some conditions.

as soon I hit the "D" keyword, this error pops up. 

 

my sampler method is:

 

protected override SamplerStatus Sampler(JigPrompts prompts)
{
    var jigPrompt = new JigPromptPointOptions();
    jigPrompt.Message = "\nInsert sprinkler";
    jigPrompt = _jigOptions.GetJigPromptPointOptions(jigPrompt);
    var jigResult = prompts.AcquirePoint(jigPrompt);

    switch (jigResult.Status)
    {
        case PromptStatus.Keyword:
            return SamplerStatus.NoChange;
        case PromptStatus.OK:
            var sprinklerPosition = _jigOptions.UpdatePosition(jigResult.Value);
            return SamplerStatus.OK;
        default:
            return SamplerStatus.Cancel;
    }
}

 

this is the method of the other class which determines my JigPromptPointOptions:

 

public void GetJigPromptPointOptions(JigPromptPointOptions jppo)
{
    var output = jppo;
    if (_guideLine1 is null)
    {
        jppo.Keywords.Add("add Dimension");
    }
    else if (!Dim1IsFixed)
    {
        jppo.Message = "\nInsert Sprinkler or enter distance:";
        Dim1.XLine1Point = _guideLine1.GetClosestPointTo(_movingPoint, true);
        jppo.BasePoint = Dim1.XLine1Point;
        jppo.UseBasePoint = true;
    }
    else if (_guideLine2 is null)
    {
        jppo.Keywords.Add("add Dimension");
        jppo.AppendKeywordsToMessage = true;
        Dim1.XLine1Point = _guideLine1.GetClosestPointTo(_movingPoint, true);
        jppo.BasePoint = Dim1.XLine1Point;
        jppo.UseBasePoint = true;
    }
    else
    {
        jppo.Keywords.Clear();
        jppo.Message = "\nInsert Sprinkler or enter distance:";
        jppo.BasePoint = _guideLine2.GetClosestPointTo(_movingPoint, true);
        jppo.UseBasePoint = true;
    }
}

 

 

0 Likes
178 Views
0 Replies
Replies (0)