Filiing Type Parameters In revit

hi all
i’m working on project to fill the data of COBie and i succeed in filling the data in the instance parameters but when i tried to fill the data Same data with the same parameters Names but onlyy the difference is COBie.Component and COBie.Type I failed
i don’t know how to fill the Parameters in the family type parameters Not Instance ??

and onther question





is there any way to make it automatically Put the parameters from COBie.Component.(ParametersName) … to (COBie.Type.(ParameterName) ???

From the instance, query the type. An Element.Type node should help there. You can then read and write the type’s parameter’s as desired.

Element.GetParameterValueByName and ELement.SetParameterValueByName shoudl work. However if you have multiple instances of the component with varying values this won’t work, as you only have one type to work with.

sorry i think i had to delete this post because i treid again and i works well
thanks for your time