I would suggest that if you want an editable object you use PROFILER (the add-on) instead of complex profiles. Complex profiles add way too much senseless code to the resulting part...
In PROFILER, you have the same profile and will have a SQUARE (polyline) as the PATH. Once you open up the .gsm, you will be able to identify which number relate to the path and which relate to the profile. (use the gdl reference pdf in the help menu of AC for more info)
Simply replace the path nodes with VARIABLES. Most likely you will want the PATH to match the window opening.... so you identify the INSIDE of your profile as the point of extrusion. Then when you type in A & B on your part, they can match the window opening size.
Profiler will builld the object laying down, so you'll also have to include a rotx 90 at the beginning.
It is really easy to do (but seemingly hard to explain).... If you make a module of the PROFILE as a fill (copy the one out of your complex profile) and email it to me, I can whip up...
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop