Orchid package possibilities

Tnx for this. Now it seems logical, but unfortunatelly I have another problem with this script…When I try to delete lines from family I get following error:

Test.dyn (11.5 KB)

Best regards, Branimir

It seems that this error occurs when several files are being opened… fortunately, I know what to do about it, so I only need to update the package.

However, I am building some nodes at the moment I would like to include before releasing a new build… should be ready within 24 hours… I will return when a new build is available.

OK, great.

Just as info to you, this was my only opened file…If that helps you with anything…

Best regards, Branimir

@brane1012 I don’t think the element.Delete will work like this. You have to modify the node / python to be deleting things from the Family Doc. This node as is defaults to the main Doc and won’t work.

You can see this example I have shared on here before:

And how can I recreate this? I must admit that I am not familiar with Python…

Can this node be downloaded from somewhere?

With a little bit of searching, it appears that the Genius Loci Package has a Delete Element from Document Node. I would start with that package if Python isn’t the best route for you.

View here for reference:

2 Likes

On first it seems that it works. I will do some more testing :slight_smile:

Thank you very much.

Best regards, Branimir

as @SeanP mention… i miss an input for several files, and I have coded the node. it will be released within 24 hours. together with some other nodes.

1 Like

I am now thinking about my second question, but I believe this is not possible without actually knowing the name of parameters that I want to rename:

2. Collect all families inside document, rename all family parameters inside families (without knowing all the names of parameters), and of course update all the families?

Do you have any thoughts about this?

Best regards, Branimir

In what way do you want them renamed? If you need specific ones renamed to some else specific you will need to have all that info. If you just want them named like “param 1” to “param 12” or something yes you can do that. I would need to get in front of a computer, but I believe bi have code to do that.

Exactly what you said…I would like that all parameters are named from Parameter 1…Parameter XXX.

I would greatly appreciate if you can give me some guidance.

Best regards, Branimir

@brane1012

here is the new node… (download from my github)

Test.dyn (12.7 KB)

3 Likes

Hi,

I did some testing and it seems that node works, but only when you have one family type loaded into project. When I have several types loaded into project node deletes only the first type. Is that normal?

Best regards, Branimir

try to post you work so far… both the graph file and the image of the graph.

next, i think you need to use list level, but when you start using list level, then be aware that the output changes as well! you need also to control this!

Hi,

I posted two files.

  1. Problem.png - is what I am actually trying to achieve. Delete all the lines from several families and family types. In the test file I used two families with two family types per each family.
  2. Capture.png is the graph after I run it.

Although element.delete node returns both null value, first value functions OK. It deletes the all the lines inside the family. The problem is that the graph doesn’t do that on the second one.


Best regards, Branimir

please, always zoom into some few nodes and then use the camera upper right, this gives the best image :slight_smile:
…and please give also the graph file (.dyn)

could you also upload two sample families for the test?

1 Like

Hi,

here is the dyn file, and test families.

Best regards, Branimir

Air Terminal_1.rfa (340 KB)
Air Terminal_1.txt (1.5 KB)
Air Terminal_2.rfa (340 KB)
Air Terminal_2.txt (1.5 KB)
Family Lines_Test.dyn (12.0 KB)

There was an error in the code for the delete node. Sorry for that… I have now updated the code. However, I have at the moment a betabuild in test which has some changes to the environment so I cant make a “release” version before this beta is finished.

Therefore, please install the beta build present at my Github. I have added an “update” node to your graph, so you will be warned when a release is ready. It opens automatically the github page in such case.

Family Lines_Test.dyn (27.9 KB)

1 Like

@erfajo It seems that it works now. Thank you very much.

@SeanP Did you maybe have time to take a look how to rename parameters?

Best regards, Branimir

I have nodes for renaming parameters as well…