Attached is an example (NX 7.5) that may not work exactly like you might wish, but I think the final result will be very close.
Open the file and edit the Solid 'bar' by double-clicking. When the Swept dialog opens, in the 'Guides (3 Maximum)' section of the dialog, select the 'Select Curve (1)' item and then de-select (shift-select) the
Green curve. Now select the
Blue curve and hit OK.
The result will still be a single seamless solid 'bar' since the original sketch, made of a line and an arc, was 'converted' (associatively) to a single segment spline by creating a 'Join' curve feature (the
Blue curve). Also note that the length of the original sketch is controlling the length of the solid 'bar' so is you edit the sketch named 'Final Shape', changing the length of the straight section and/or the radius and angle of the curved section, when you update that sketch, the length of the 'guide' curve used to create the solid 'bar' will change as well. Note that there was NO attempt to compenstate the length of the bar, as it went from the unformed to the formed state, for the effect that deforming a shape like this would have on the actual profile and length of the deformed portion of the solid 'bar'. In other words, the result is an idealized shape.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.