How do I connect a spline, arc or line on the right datum plane to sketch on the top plane to make a sweep using trajectory?
This is one way:
Fillet between non planar splines or sketch lines
Another way is to create a sketch on a plane that is normal to top plane and that goes through the endpoints of the two sketches. This sketch would connect the previous two sketches - but it might be harder to get the tangency constraints to work.
In any case, afterwards, it is a matter of selecting all the pieces of your sweep trajectory using the CTRL button...
I HAVE ATTACHED A DRAWING HOW WOULD I SWEEP THOSE 2 SKETCHES USING A SPLINE ON ONE END AND A LINE ON THE OTHER END AS A TRAJECTORIES.
For the problem of connecting your spline on on the right hand side to the top rectangular sketch:
Shown in blue is a surface generated by using a sweep with multiple chains that define how the vertices of sketched section move along the straight trajectory:
The sweep trajectories and sweep cross-section are as follows:
Not what you're after, I think, but maybe you can get there.
I think this kind of thing would be easier to generate as a loft type feature found in Solidworks, Rhino or Blender.
But with Creo and its sweep, you have to be quite exact in how you are specifying everything.