New Component Family error {339931}

Hello everyone,

I have a problem that I honestly have no idea how to solve, and I would like help.

Issue: The New Component Family is not working, apparently due to the error “The Width parameter has an invalid value. {339931}”.

Context: Using a project file as a base, I’m creating a family of windows, editing in the window file, and using grasshopper between the two files.

Any questions, just ask me

Thanks for your help in advance!


BASE_FAMÍLIAS.rvt (4.5 MB)
FAMÍLIA_BASE-JANELA.rfa (452 KB)
Error.gh (77.6 KB)

There are a few pieces missing, and not able to tell where that error would be coming from in this case, can you isolate a smaller example?

Hi Japhy

I isolated the problem and arranged the components to make it easier to read. Any questions, just ask me and thanks for the help.

BASE_FOR_FAMILY.rvt (4.5 MB)
WINDOW_FAMILY.rfa (476 KB)
WINDOW.gh (29.1 KB)

I’ll need the .rft file to make this work…

I’m not following what you are doing with the Global parameter?

Sorry about that, I forgot to put the rft file.

About the global parameter, I’m using it to define the total width and height, I forgot to translate these components into English, I’m resending translated.
BASE_FOR_FAMILY.rvt (4.5 MB)
WINDOW.gh (25.2 KB)

(I can’t attach the template here, so I put it in the We Transfer link)

Thanks, getting closer.

The error mentions an element that has been deleted. Turning off the Update on new component family clears the error.

I’m a bit confused on the process. You’re creating a new family via template, opening that family and placing it in itself?

I’m sorry, I think I got a little confused when writing the code.

Basically, I want to create a nested family. The “larger” family will be a window family, with a wall to insert the opening, and the “smaller” family will be just the 3D model of the window.

This nested family model seems to be causing some errors in the New Component Family. Is it a misuse of the component on my part, or is it related to the Revit API?

You can load a family into a Family Document like so