You have a sketch. You activate Insert > Weldments > Structural Member. You select the sketch lines. SOLIDWORKS either throws an error, silently omits some lines from the resulting bodies, or lets you finish — and the solid bodies pass through each other at every joint without trimming.

None of these outcomes produces a clear error message that names the actual cause. This post covers every root cause and the diagnostic sequence to isolate which one is killing your structural members.

How Structural Member Creation Works

SOLIDWORKS builds structural members by extruding a profile sketch (.SLDLFP) along a path defined by sketch segments. The path must satisfy structural constraints that a standard extrude path does not need to satisfy.

There are five distinct failure modes, each with a different diagnosis and fix:

  1. The sketch path has open contours or gaps between segment endpoints
  2. Duplicate or overlapping sketch segments are present
  3. 3D sketch endpoints appear coincident but have a Z-offset
  4. The group topology is invalid (branching paths, mixed connected/parallel)
  5. The profile file path is broken

After creation, a sixth failure: solid bodies pass through each other at joints because corner treatment was not configured.

Failure 1: Open Contours and Gaps Between Endpoints

A structural member group requires every segment in the group to share its endpoint coincidentally with adjacent segments. A gap of 0.0001mm between two line endpoints — invisible at any zoom level — prevents member creation.

Diagnose it:

  1. Exit the Structural Member command
  2. Edit the path sketch
  3. Go to Tools > Sketch Tools > Check Sketch for Feature
  4. Set the feature type to Weldment: Structural Member in the dialog
  5. SOLIDWORKS reports open contours, self-intersections, and gap locations

Fix:

Use Tools > Sketch Tools > Repair Sketch — it finds and closes small gaps automatically. Alternatively, add explicit Coincident relations between the offending endpoint pairs.

The most common source of hidden gaps: importing a DXF profile and converting it to a sketch via File > Open > DXF/DWG > New Part > 2D Sketch. The imported lines look connected but have floating endpoints at 10-digit decimal precision that do not truly coincide. Run Repair Sketch on any imported sketch before using it as a weldment path.

Failure 2: Duplicate or Overlapping Sketch Segments

Two lines occupying the same space block structural member creation. The sketch looks correct — you see one line — but the solver detects two entities competing for the same space.

This happens when:

  • You sketch a line, then sketch another line between the same endpoints, forgetting the first exists
  • An imported sketch has duplicate entities from the source file
  • Mirror or pattern operations created overlapping geometry

Diagnose it:

In the path sketch, zoom into the suspected area and window-select a small region. If more entities are highlighted than expected, duplicates are present.

Fix:

Delete one of the duplicates. If the sketch came from an import, use Check Sketch for Feature — it catches overlapping segments that Repair Sketch will not flag as gaps.

Failure 3: Non-Coincident Endpoints in a 3D Sketch

This is the hardest failure to spot. In a 2D sketch, all endpoints are coplanar so near-miss gaps are visible. In a 3D sketch, two endpoints can be very close in X and Y but separated in Z. They look connected in any standard view, pass the visual inspection, and still fail.

This is common when:

  • Building a tube frame by sketching in multiple planes within one 3D sketch
  • Converting assembly reference geometry to a 3D sketch path
  • Projecting curves onto a 3D sketch plane from an imported model

Diagnose it:

  1. Edit the 3D sketch
  2. Click a suspicious endpoint
  3. Check the coordinate display at the bottom of the screen (the status bar shows XYZ)
  4. Click the adjacent endpoint on the supposedly connected segment
  5. If the Z values differ by any amount, they are not coincident

Fix:

Add explicit Coincident relations between the endpoints. Do not rely on visual proximity in 3D sketches. When building a complex tube frame, add coincident relations at every intersection as you sketch — retroactive diagnosis across 40 segments is time-consuming.

Alternative approach: build the 3D sketch in separate 2D sketches, one per face. Assign segments from different sketches to different groups in the Structural Member PropertyManager. This forces coplanarity per sketch and eliminates the Z-offset trap entirely.

Failure 4: Invalid Group Topology

Each group within a structural member feature can contain either:

  • A continuous connected chain of sketch segments (lines and arcs with shared endpoints), or
  • A set of parallel non-connected segments (SOLIDWORKS creates one body per segment)

A group that mixes a connected chain with an unconnected segment, or that branches at a T or Y junction, is invalid. SOLIDWORKS will either refuse to create the group or silently omit the offending segment.

Diagnose it:

The PropertyManager shows the selected segments for each group. If a segment you selected is not highlighted in the model preview, it was rejected. Compare the count of selected segments against the count of created bodies in the resulting feature.

Fix:

Split branching paths into separate groups:

  • A T-junction requires two groups: the horizontal run and the vertical branch. The vertical branch group uses Trim Order to cut against the horizontal.
  • Parallel non-connected segments belong in their own group, separate from any connected-chain group.

A common mistake: selecting an entire sketch (all segments at once) as a single group when the sketch contains both a connected chain and isolated parallel members. Split them into separate groups and the creation succeeds.

Failure 5: Broken Profile File Path

If the structural member creates but has no solid geometry, or SOLIDWORKS prompts for a profile when you edit it, the profile file path is broken.

SOLIDWORKS stores weldment profiles as Library Feature Parts (.SLDLFP) in a folder hierarchy that must be exactly three levels deep:

Weldment Profiles/
  [Standard]/
    [Size]/
      profile.SLDLFP

Common causes:

  • Network share mapping changed (drive letter differs on another machine)
  • Profile folder moved by IT during a server migration
  • Custom profiles created in a personal user folder not shared with other machines

Diagnose it:

Go to Tools > Options > System Options > File Locations > Weldment Profiles. Verify the listed path exists and is accessible from the current machine.

Fix:

Update the path in File Locations. Use a UNC path (\server\share\WeldmentProfiles) rather than a mapped drive letter to avoid per-machine mapping differences.

The SOLIDWORKS weldment profiles download and VBA insertion guide covers locating the standard library profiles and programmatically inserting custom ones.

The Intersection Problem: Bodies Passing Through Each Other

If structural members create successfully but pass through each other at joints without trimming, the issue is not with member creation — it is with corner treatment.

Corner Treatment in the PropertyManager

When you create a structural member and select path segments from multiple groups, SOLIDWORKS shows a Corner Treatment section. Options at each joint where groups meet:

  • End Butt 1: first group body is trimmed; it butts against the second
  • End Butt 2: second group body is trimmed; it butts against the first
  • Miter: both bodies are cut at equal angles to meet flush
  • None (or no corner treatment set): bodies are created with full overlap — they pass through each other

If you created structural members without setting corner treatment, every joint overlaps. There is no warning.

Trim Order for 3+ Member Joints

At joints where three or more members converge — a corner post in a tube frame, a truss apex — the Trim Order parameter controls which body is trimmed against which. Clicking the up/down arrows on Trim Order cycles through preview configurations. Setting Trim Order 1 on all groups causes all members to miter together at the joint.

Post-Creation Fix: Trim/Extend

For members already created without corner treatment, use Insert > Weldments > Trim/Extend:

  1. Select the body to trim (the one that should be cut shorter)
  2. Select the trimming body or face
  3. Set the trim type: body-to-face or body-to-body

Error: “Failed to trim weld member or apply a gap because of geometric conditions” occurs when:

  • Three or more members meet at an acute angle and the automatic solver cannot determine a valid trim
  • The profile is too large relative to the intersection geometry
  • Arc segments connect to lines at the trim junction

Workaround for geometric condition failures:

Trim to a face rather than a body. Select the planar face of the intersecting tube instead of the entire body. Apply Trim/Extend joint-by-joint rather than selecting all trimming bodies at once. If the geometry is genuinely ambiguous (for example, three equal-diameter tubes meeting at 120°), use Split to manually cut the body and delete the unwanted portion.

The Select Chain Behavior (Easy to Miss)

Right-click > Select Chain does not work inside the Structural Member PropertyManager. If you activate the Structural Member command first and then try to right-click a sketch segment to chain-select, the selection has no effect.

Correct sequence:

  1. In the sketch canvas — before activating any command — right-click a sketch segment
  2. Choose Select Chain
  3. All connected segments highlight
  4. Now activate Insert > Weldments > Structural Member
  5. The pre-selection carries through into the PropertyManager

For complex tube frames with 20+ segments, pre-selecting chains before entering the command is far faster than picking segments one at a time inside the PropertyManager.

Verification: Check the Cut List Body Count

After creating structural members, verify the cut list body count against expected bodies:

  1. Open the Weldments folder in the FeatureManager tree
  2. Expand Cut-List — it shows all weldment body groups
  3. Compare the total body count against the number of path segments you intended to convert

If the count is lower than expected, expand each structural member feature in the FeatureManager to see which one has fewer bodies than its input segments. Delete that feature, fix the underlying sketch issue from the diagnostic sequence below, and recreate it.

API: Creating Structural Members Programmatically

For add-in developers building weldment automation, the relevant interface is IStructuralMemberFeatureData.

Key properties:

  • PathSegments — gets or sets the sketch segments used as the path
  • WeldmentProfilePath — the .SLDLFP file path
  • ConfigurationName — configuration within the profile file
  • ApplyCornerTreatment — whether corner treatment is applied
  • AllowProtrusion — controls overshoot past path endpoints
  • RotationAngle — profile rotation relative to the path

AccessSelections() must be called before modifying an existing feature’s data programmatically:

Dim swFeat As SldWorks.Feature
Dim swStrMem As SldWorks.IStructuralMemberFeatureData
Set swFeat = swPart.FeatureByName("Structural Member1")
Set swStrMem = swFeat.GetDefinition()
' AccessSelections is required before reading or modifying path segments
swStrMem.AccessSelections swPart, Nothing
' Modify properties here
swFeat.ModifyDefinition swStrMem, swPart, Nothing

Programmatic member creation uses IFeatureManager.CreateStructuralMemberGroup to build groups, then InsertStructuralWeldment3 to finalize the feature. This API path is used when converting a BOM-driven tube frame layout (imported from a spreadsheet or external app) directly into a SOLIDWORKS weldment model without manual sketch selection.

Diagnostic Sequence

Run these in order. Most failures are resolved by step 2 or 3:

  1. Check Sketch for Feature (Weldment: Structural Member) — finds open contours, gaps, overlapping segments
  2. Repair Sketch — auto-closes small gaps from imported geometry
  3. Inspect 3D sketch endpoint Z coordinates — look for out-of-plane endpoint pairs
  4. Review group topology — no T-junctions in a single group; no mixed connected/parallel segments
  5. Verify profile file path — Tools > Options > File Locations > Weldment Profiles
  6. Set Corner Treatment — configure for all joints in the Structural Member PropertyManager
  7. Apply Trim/Extend as cleanup for any remaining overlapping bodies

The bent tube weldment cope geometry post covers the next troubleshooting tier: once members are creating correctly, why the cope (saddle cut) at curved tube joints can be wrong — a separate issue from member creation that uses different tools.

For tube frames that need to export for tube laser cutting, the tube laser vs sheet metal laser workflow guide covers the downstream step: once your weldment members are correct, what format and data the tube laser machine actually needs.