opExtrude with UP_TO_NEXT

emagdalenaC2i
emagdalenaC2i Member, Developers, Channel partner Posts: 867 ✭✭✭✭✭
edited February 2017 in FeatureScript
Hi
I am trying to simplify a FeatureScript using the UP_TO_NEXT option in opExtrude instead of BLIND, but it doesn't seem to work.

This is the part of code:

            // Extruye el panel hasta la cara opuesta
            opExtrude(context, id + "extrude1", {
                    "entities" : frameRegionToExtrude,
                    "direction" : framezDirection,
                    "endBound" : BoundingType.UP_TO_NEXT,
            });

And this is the FeatureScript notices:

@opExtrude: EXTRUDE_UPTO_NEXT_NO_DIVISION

166:12   
onshape/std/geomOperations.fs (opExtrude)


567:13   
AluminiumProfile (const AluminiumProfile)

52:17   
onshape/std/feature.fs (defineFeature)


605:21   
Estructura (const buildPrivate)


608:13   
Estructura (const buildPrivate)

27:17   
onshape/std/partStudio.fs (definePartStudio)


17:12   
Estructura (build)


7:12   
Estructura (main)

I am missing a parameter or anything else?
Un saludo,

Eduardo Magdalena                         C2i Change 2 improve                         ☑ ¿Por qué no organizamos una reunión online?  
                                                                     Partner de PTC - Onshape                                     Averigua a quién conocemos en común

Comments

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,278 image
    The error suggests that the code is fine, but the extrusion is failing in the part studio because the "next" body doesn't completely bound the extrusion (its projection doesn't cover the profile).  I think for anything more specific as to why it's failing, we'd need to see the part studio and the code.  Hope this helps.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • emagdalenaC2i
    emagdalenaC2i Member, Developers, Channel partner Posts: 867 ✭✭✭✭✭
    ok, thanks
    It doesn't "completely" bound the extrusion
    Un saludo,

    Eduardo Magdalena                         C2i Change 2 improve                         ☑ ¿Por qué no organizamos una reunión online?  
                                                                         Partner de PTC - Onshape                                     Averigua a quién conocemos en común