Use the Rotate tool. Move the cursor near point P, and SketchUp’s inference engine should automagically “attach” to the exact end-point. By default, the rotation will occur in the plane of one of the adjacent faces. Depending on how you slightly move the cursor position, you can induce SketchUp to use either of the two adjacent faces (if they are not co-planar). If you want the rotation to occur about one of the principle axes, you can temporarily lock the rotation to Blue (press Up), Green (press Left), Red (press Right), or perpendicular or parallel to existing geometry (press Down once or twice).
Then click a second time on point A. Then click a third time along the guideline. You might need to draw a temporary edge along the guideline that spans the approximate region where point A is to end up. I don’t recall if that temporary edge is helpful to get SketchUp’s inference engine to jump the final rotation point A onto the edge,
If both shapes are on the same plan press Q and hover over the spot for P, then hover the cursor over A and look for the snap to refence, then click the grab point and move curser to the guide line until it snaps then final click.
If the groups are red/green plan you can tap the up arrow after pressing Q to lock into the Z plan for the rotate.
Good luck
That’s what I’ve been doing but it will not snap to the point when the corner of the object hits the guide line, or indeed a line I have drawing along that guideline. It snaps to the line, but not to the exact point. I can move the cursor up and down the line and the rotation increases/decreases depending where I am on the line.
From the first image i didnt see the shape ends where not flat or coplaner.
What you might try: if you know the point you want A to hit draw lines that are on that point using measurements. So im guessing at the planes but say reference green plan over 3" and then red plan across 1" then blue plan up .1" Not these made up numbers but what ever the actual distances are in straight line planes to get from the target start to the target stop. (these are just examples to get the point in 3D space for the target). then group those lines so they don’t mess with your other geometry. then draw a line from your target point to the start point: use this line to reference the rotation plane. I think the problem you are having is the start and stop are not on the same plane, so my method will help rotate the object coplaner to start and stop targets. Possibly, you want them to rotate flat but the stop point is off the plan to reference. then draw perpendicular line from the destination out to the same plan as the rotation pivot. Sorry so long explanation. Hope this gives you something to try.