Search Results for

    Show / Hide Table of Contents

    Method CleanShape

    CleanShape(ElementId, double, double, bool, double, bool, double, bool, bool, bool, double, bool, out List<ElementId>)

    Cleans a shape (exact or faceted)

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 20, 205, 0)]
    void CleanShape(ElementId inElementId, double inAngularTolerance, double inLinearTolerance, bool inUseRepairEdgesTolerance, double inRepairEdgesTolerance, bool inUseRemoveSmallEdges, double inSmallEdgesLength, bool inRemoveSmallEntities, bool inOptimize, bool inIsSimplifyFaces, double inSurfaceFitTolerance, bool inOptimizeBlendFaces, out List<ElementId> outCreatedShapes)
    Parameters
    Type Name Description
    ElementId inElementId

    Shape to clean

    double inAngularTolerance

    angular tolerance

    double inLinearTolerance

    linear tolerance

    bool inUseRepairEdgesTolerance

    whether to use repair edges option

    double inRepairEdgesTolerance

    edges tolerance

    bool inUseRemoveSmallEdges

    whether to use remove small edges option

    double inSmallEdgesLength

    Small edges minimum length

    bool inRemoveSmallEntities

    whether to use remove small entities option

    bool inOptimize

    whether to use optimisation option

    bool inIsSimplifyFaces

    whether to use remove simplify faces option

    double inSurfaceFitTolerance

    Simplification tolerance

    bool inOptimizeBlendFaces

    whether to use blend faces optimisation option

    List<ElementId> outCreatedShapes

    eventually, return created shapes

    Remarks

    StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.

    This method is available since v7.20

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.