Using Dynamo to control Revit generic family parameters

I made a simple Dynamo graph to find a way of using Dynamo to insert a 2d lines Generic Family (X-Z plane) with the ability to control the X and Y dimension on each family (a rectangle). I use the Element.Parameters node to list the parameter of the selected family but I don’t see the dimension parameters X and Y in the list. Is it not the right node to use? Any other nodes I can use to control the dimensions of the rectangles?

Try skipping the FamilyType.Family node. The parameters are associated to the type, not the parent family or the instance.

This testing graph can solve the problems. I will test it in the more complex parameters.