Skip to content

Can't edit sketch that uses patternLinear2d #9465

@andrewvarga

Description

@andrewvarga

Cannot edit sketch via either double clicking on it (nothing happens) or right click / Edit Sketch in Feature Tree (sketch mode opens but no segments are rendered):

sketch001 = startSketchOn(XZ)
profile001 = startProfile(sketch001, at = [-3.75, 3.75])
  |> line(end = [-4.98, -8.91])
  |> line(end = [5.5, 1.5])
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
  |> close()
  |> patternLinear2d(instances = 3, distance = 10, axis = [1, 0])

Related issue #7278
Simplified KCL:

@settings(defaultLengthUnit = mm)

controllerWidth = 102
controllerHeight = 173
controllerDepth = 14
dpadSize = 20

controllerBody = startSketchOn(XY)
  |> startProfile(at = [
       -controllerWidth / 2,
       -controllerHeight / 2
     ])
  |> xLine(length = controllerWidth)
  |> yLine(length = controllerHeight)
  |> xLine(length = -controllerWidth)
  |> close()
  |> extrude(length = controllerDepth)

// Simplified D-pad as a rectangle
test = startSketchOn(controllerBody, face = END)
  |> startProfile(at = [-dpadSize / 2, -dpadSize / 2])
  |> xLine(length = dpadSize)
  |> yLine(length = dpadSize)
  |> xLine(length = -dpadSize)
  |> close()
  |> extrude(length = 2)

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions