Parents
  • I tried the AVEVA C # example for clasher but I have the following error message: "(69,85) Clasher run may not be made unless the override option is used". Does anyone have a solution? Is it really possible to use the C # clasher?
    I can't set override option of Clasher in C#


    //
    // Clasher
    //
    // CheckAll
    ClashOptions opt = ClashOptions.Create();
    opt.IncludeTouches = true;
    opt.Clearance = 10.0;


    ObstructionList obst = ObstructionList.Create();
    ClashSet cs = ClashSet.Create();


    bool bResult = Clasher.Instance.CheckAll(opt, obst, cs);
    if (bResult)
    {
    // inspect clashes
    Clash[] aClashes = cs.Clashes;
    for (int i = 0; i < aClashes.Length; i++)
    {
    DbElement first = aClashes.First;
    DbElement second = aClashes.Second;
    ClashType ctp = aClashes.Type;
    Position pos = aClashes.ClashPosition;
    }
    }
Reply
  • I tried the AVEVA C # example for clasher but I have the following error message: "(69,85) Clasher run may not be made unless the override option is used". Does anyone have a solution? Is it really possible to use the C # clasher?
    I can't set override option of Clasher in C#


    //
    // Clasher
    //
    // CheckAll
    ClashOptions opt = ClashOptions.Create();
    opt.IncludeTouches = true;
    opt.Clearance = 10.0;


    ObstructionList obst = ObstructionList.Create();
    ClashSet cs = ClashSet.Create();


    bool bResult = Clasher.Instance.CheckAll(opt, obst, cs);
    if (bResult)
    {
    // inspect clashes
    Clash[] aClashes = cs.Clashes;
    for (int i = 0; i < aClashes.Length; i++)
    {
    DbElement first = aClashes.First;
    DbElement second = aClashes.Second;
    ClashType ctp = aClashes.Type;
    Position pos = aClashes.ClashPosition;
    }
    }
Children
No Data