fren
  Log in   Registration

We are +23 BIM professionals!

Join us>
Do you have any questions?

Need technical support, advice or advice?


  Monday October 2 2017
  98 Replies
  16.8K ​​Visits
  Subscribe now
Hello,
I explain my problem to you
Currently on my plans, I want to display my duct labels with the same color as my duct systems. I am unable to call the sheath system parameter in my label and therefore change the color of my label according to my system.
I settled the problem temporarily by creating for each system a type of label of the associated color but it is a bit laborious ...
Is there an easy way to apply colors to labels depending on the systems? I was thinking maybe going through Dynamo, but I am not familiar with the software at all ...
Thank you
over a month ago
·
#6827
0
Votes
Cancel
Hello,

I also went through your problem on one of the projects on which I was working. I am still looking for a viable solution.

I displayed the different types of pipe system one by one via view filters, and I selected only the elevations and pipe labels to apply a graphics replacement (shortcut EOD).

In the end, this method is time-consuming and must be repeated for each new label, on each view ...

cordialement,
over a month ago
·
#6829
0
Votes
Cancel
Hello,

Indeed, a dynamo is essential!

You can start with this kind of definition:

Bubble n ° 01: you choose your pipe label
Bubble n ° 02: you can filter which types of pipeline families you associate

have a good day
over a month ago
·
#6839
0
Votes
Cancel
however with the filters, once they are properly configured you will have nothing more to do. While using the filter is time-consuming the first time, if you save these filters in your template, then you won't need to redo them.
over a month ago
·
#6840
0
Votes
Cancel
I spoke too quickly ... I will look for it. it all intrigues me ...
over a month ago
·
#6841
0
Votes
Cancel
Yes David, unfortunately the filters are only used to group together families of objects and not labels .....
over a month ago
·
#6847
0
Votes
Cancel
For my part, in this case, I create a label with a wording containing what I want.
I then duplicate the labels as many times as I have colors.
I create label types by color (one type per color) and change the color of each type. I associate a type of label with each label.
All that remains is to create visibility parameters associated with the different labels (small gray square on the "Visibility" line of the properties).
Then create new types of label (one per color) and for each type of label, uncheck the labels that you do not want to display.
Load your label into your template.
You now only have one label with types that will only display the chosen colors, which you can use in all your projects.
over a month ago
·
#6848
0
Votes
Cancel
Thanks Thomas, this is exactly what I am currently doing but I find the creation of labels to be very laborious and the drop down list of labels in my project is immediately huge.
I am keeping this method for the moment but I find it very time consuming, I will need someone who has an idea to change the color of all my labels in a few clicks to associate them with the color of the labeled system.
The Dynamo solution seems very interesting to me but I do not master the software at all ...
over a month ago
·
#6854
0
Votes
Cancel
+1 for Dynamo and keeping the Tag Family you have already created

1) List the labels present in the project or in the view
2) Find the host object of the label
3) Read the parameter indicating the System of this host
4) Assign the correct Type accordingly
over a month ago
·
#6940
0
Votes
Cancel
Hello,

I was just asked on my current project, if my cable tray labels could be the same color as my CDC (color affected by filter on the type of service). So I created as many types of labels as desired colors, I made the dynamo script detailed by Benoît (Thanks Benoît!) And it works very well. I will apply it on 21 models, which is to say that it is a hell of a time saver !!!

PS: In my solution, the name of the label types must be unique in the mockup.

Hope this helps you

Cdlt
over a month ago
·
#6961
0
Votes
Cancel
Bonsoir

Have you used any packages for Dynamo and if so which ones please?
over a month ago
·
#6964
0
Votes
Cancel
Hello,

the 2 packages installed on my computer are archi-lab.net and Bakery.

Cdlt
over a month ago
·
#6965
0
Votes
Cancel
Hi

Thank you for your quick reply.
I would like to know what the "My service types" and "My label types" blocks are called because I am new to dynamo SVP?
over a month ago
·
#6966
0
Votes
Cancel
We must refer to William's post. the knots are clearly legible.
You will not have the info directly in a single node. Dynamo's logic generally consists of taking a set and then filtering successively so as to keep only what interests you.
over a month ago
·
#6967
0
Votes
Cancel
Hello Jack,
These are simply Blocks that appear when you double click on the Dynamo interface.
over a month ago
·
#6968
0
Votes
Cancel
Thank you Frédéric
over a month ago
·
#6993
1
Votes
Cancel
Hello,
Herewith my proposal with Dynamo. (Except for Elec)
Dynamo version 1.2.3 (REVIT 2016)
Package to add:
Spring 110.0.2
Archi-lab.net 2016.12.10
Rhythm 2016.8.3

The color of the label will automatically take on the color of the duct system and the vents.
Do not use the HVAC equipment category, a Bug causes a fatal error.
Attention to the accessory with multi-category! -> causes a simple error
You can adapt it to the pipeline or other by modifying the categories.

For use:
Make a view active, start the routine.
Then, activate another view, but before starting the routine, switch the "True / False switch" to the other position and RUN
For another view, toggle the switch again.
over a month ago
·
#7149
0
Votes
Cancel
Problem solved.
Clearly, I select my entire plan, I manage to bring out only the labels.
I then look for the host element of each label, I look for the system abbreviation for each host element.
So I end up with a list of system abbreviations of my selection.

I previously created an excel file with
- 1st column: list of my system abbreviations of my REVIT template
- 2nd column: list of the red color component of my system
- 3rd column: list of the green colored component of my system
- 4th column: list of the blue color component of my system

In Dynamo, I output each column of my Excel file as a list, so I end up with my system abbreviation list and my 3 RGB lists.

I now apply a List.AllIndicesOf to my list of system abbreviation of my selection. So I end up with a list of indexes that correspond between my excel list and my selection list.

I apply 3x List.GetItemAtIndex with as inserted lists my 3 RGB lists and as index my corresponding index list.
I apply a Color.ByARGB by applying my list Red on R, Green on v and blue on b.
And finally I apply the color to each selected Label.

So I finally have my program which applies the system colors to the associated labels! :D
over a month ago
·
#7150
0
Votes
Cancel
Hi,

I followed this conversation with great interest because I had the same concern for my labels and I also thought I had found the dynamo solution because my script worked perfectly on a small network with few duct systems.

Things got tough when I wanted to add duct systems. My script, however, sorts by "system abbreviation", but I just realized that despite everything the classification of the system takes precedence :(

Does anyone have the solution?
over a month ago
·
#7151
0
Votes
Cancel
Hello,
You're sorting the system by abbreviation so I don't understand why the classification of the system comes into play. Are the labels only duct labels or do you also have labels for HVAC equipment? The system abbreviation parameter does not appear in HVAC equipment ...
Can you explain to us by what means you do your sorting?
over a month ago
·
#7152
0
Votes
Cancel
Hello,
Indeed, I do not understand either. I only have duct labels, but a lot of duct system ..
Here is how I did my sorting: Capture1.JPG
over a month ago
·
#7153
0
Votes
Cancel
Do we agree that each system has a unique system abbreviation? (SOU system x, abbreviation x, SOU system y, abbreviation y ....)
over a month ago
·
#7154
0
Votes
Cancel
You should use an excel file to identify your system colors
-1st column: list of my system abbreviations
- 2nd column: list of the red color component of my system
- 3rd column: list of the green colored component of my system
- 4th column: list of the blue color component of my system
over a month ago
·
#7155
0
Votes
Cancel
Yes, my abbreviations are unique ...

Great idea the Excel table, I'll try :-)
over a month ago
·
#7157
0
Votes
Cancel
Hello,
I just made a little script on dynamo (without package or excel) which can apply colors to ducts and labels.
I hope this will help you
If this is what you are looking for, I explain how it works 1.PNG 3.PNG
over a month ago
·
#7158
0
Votes
Cancel
Hello,
Thank you very much for this script which I just tried, it is also very good.
Unfortunately, just like in the previous solution, I still have this system classification problem that takes precedence over system abbreviations.
What happens is that I have 7 different duct systems, with different colors, which I have assigned a different abbreviation. But as Revit only offers 3 system classifications (return, supply, air extraction), all the systems of the return classification are found in 1 single color, and the same for the supply and extract air classification, without take into account abbreviations.
I am still searching.... :-)
over a month ago
·
#7159
0
Votes
Cancel
And if you sort it with System type, then you add this parameter in the labels
over a month ago
·
#7160
0
Votes
Cancel
What if the colors changed at the behest of a facetious engineer?
More than to restart the Excel table?
Well ... For my part if I am asked I would just say that it is not possible.
However, congratulations to all of you for finding this solution.
over a month ago
·
#7163
0
Votes
Cancel
David,

My routine takes the color of the System.
You just have to relaunch it in case you change the color.
over a month ago
·
#7165
0
Votes
Cancel
Hello Anne, do not hesitate to send us your file if you want help!
over a month ago
·
#7166
0
Votes
Cancel
also, you can recover the duct filters on Revit and apply them on the labels (see example) 0.PNG
over a month ago
·
#7167
0
Votes
Cancel
Thank you for your answer Akli,
This involves managing your duct colors by filtering systems and applying color to them.
For my part, this method is not suitable because I manage the colors applied to the ducts directly in the properties of my systems to avoid the overabundance of filters.
To do with people who only use filters to apply colors.
over a month ago
·
#7168
0
Votes
Cancel
Indeed, the method consists in recovering the parameters of the filters applied to the ducts.
In your case, I don't see why you use excel
over a month ago
·
#7202
0
Votes
Cancel
I found the solution for my problem: I was not using the correct "String.Contains" node. In attachments the photos of the bad and the good.
Now, label colors are created automatically, without any selection to make, based on system abbreviations.
Thank you all, because it is thanks to all your ideas and suggestions that this script works. Good StringContains.JPG Bad StringContains.JPG
over a month ago
·
#7219
0
Votes
Cancel
Hello Anne
Can you send an overview of your final script Please
I am new to dynamo and I will want to be inspired by it to be able to treat the electrical part of revit
over a month ago
·
#7220
0
Votes
Cancel
Hello,
I'll do better: here is my final script. Of course, it will be necessary to adapt according to your own abbreviations and your colors ... 0-Color Labels.dyn
over a month ago
·
#7239
0
Votes
Cancel
Thank you Anne
Being a beginner on dynamo, I really understand and I will do my best to adapt your script to the electricity and the meter in my turn.
thanks again
over a month ago
·
#8482
0
Votes
Cancel
Hello,

I was just asked on my current project, if my cable tray labels could be the same color as my CDC (color affected by filter on the type of service). So I created as many types of labels as desired colors, I made the dynamo script detailed by Benoît (Thanks Benoît!) And it works very well. I will apply it on 21 models, which is to say that it is a hell of a time saver !!!

PS: In my solution, the name of the label types must be unique in the mockup.

Hope this helps you

Cdlt


Hello,

I went on William's solution to apply it to MEP but it doesn't seem to work for me, any idea of ​​the problem? (I'm just starting to get interested in Dynamo). the capture is in PJ.

I started with the mouth labels.

Goods.
over a month ago
·
#8491
0
Votes
Cancel
Hello,

For systems, you have to add Element.name after Getparametervalue.
The name of the labels must be that of a type and name of a family.
over a month ago
·
#8695
0
Votes
Cancel
Hello,
I'll do better: here is my final script. Of course, you will have to adapt according to your own abbreviations and your colors ... [attachment] 0-Couleur Etiquettes.dyn [/ attachment]


Hello, first of all, thank you for sharing your different works.
I just downloaded your script. I purified it to keep only a system abbreviation and the sheath label part in order to see it more clearly to begin with. (I am new to DYNAMO)
In dynamo:
I have changed the system abbreviation corresponding to my revit system
I ran the script but it cannot change the color of the duct label for me.

Here is a screen impression of my result.

Thank you in advance for your answers.

Florentine
over a month ago
·
#8698
0
Votes
Cancel
Hello,

Your Color Range node has two outputs. You probably need to specify one with a code block like list [0] or List.GetItemAtIndex.

Next time, drop the .dyn file in PJ, it will be easier to solve the problem.
over a month ago
·
#8705
0
Votes
Cancel
Hello,

Your Color Range node has two outputs. You probably need to specify one with a code block like list [0] or List.GetItemAtIndex.

Next time, drop the .dyn file in PJ, it will be easier to solve the problem.


Indeed, here is the DYN file.

I just took the script from HINCELIN Anne above. Having changed nothing, it should work.
over a month ago
·
#8709
0
Votes
Cancel
Indeed, the script works.
Is your Rhythm package up to date?
over a month ago
·
#8732
0
Votes
Cancel
Indeed, the script works.
Is your Rhythm package up to date?

Hello,

After updating the package, it works.

Thank you!

Have a good day
over a month ago
·
#9861
0
Votes
Cancel
Hello,

Following several updates (DYNAMO and PACKAGES) my script displays an error at the following node: Element.GetParameterValueByName


I have the impression that the node in question is no longer managed by the RHYTHM Package.

Do you have a solution that can fix this problem?

I am attaching the DYN file to you

Thank you in advance for your answers,
over a month ago
·
#9862
0
Votes
Cancel
Hello Florentin,

Several problems can be raised and therefore different solutions.

Have you switched to Dynamo 2.0?
-> Make sure the Rythm package is installed correctly (Dynamo updates do not always keep packages already installed on a previous version).

Is the package actually installed? What is the version of the package?
-> It is possible that with the update of a package, this one no longer supports some old nodes. In this case, no need to look for the new node corresponding to what you want, it is possible that it simply no longer exists and has no equivalent in the new version. You just have to uninstall your package and install a previous version of Rythm (option possible in the management of installed packages)

Have a good day !
over a month ago
·
#9864
0
Votes
Cancel
Element.GetParameterValueByName is an OOTB node (built-in base in dynamo).
No reason to have a rhythm knot instead.
over a month ago
·
#9868
0
Votes
Cancel
Hello,

Thank you for this clarification,

My script works fine on a new REVIT project but not on my current project (It worked two weeks ago)
My problem is not coming from my REVIT project?

In attachment, the problem on DYNAMO. It also impacts the following nodes:
STRING.CONTAINS and List.FilterByBoolMask

Remaining at your disposal
over a month ago
·
#9870
0
Votes
Cancel
Regarding your last problem, are you sure that all your elements are in a system?
over a month ago
·
#9873
0
Votes
Cancel
I just checked and everything is connected to a system. I do not understand where the error can come from.
It works on another file where I have labels on pipes

Here is my RVT file in question.
https://we.tl/UHxHx7V7XL
over a month ago
·
#9874
0
Votes
Cancel
I just found the problem. I have a legend with annotation elements that are not assigned to any system. They are the ones who falsified the script for me. I need to change the category of these items for my legend.

Thank you anyway for your help Frédéric :)
over a month ago
·
#9996
0
Votes
Cancel
Hello,

I currently have a script that manages the color of the labels against the system abbreviations. I would like to add a degree of filtration by also taking into account the description of the segment.
Today I only manage to integrate be the abbreviation be the description.

For example:
EU -> SMU -> ETQ color in Green
EU -> PVC -> ETQ color in Blue

I am attaching you the script in question.

Goods.
over a month ago
·
#10000
0
Votes
Cancel
Unfortunately Florentin, I can't open your script, the file looks corrupted ... Which version of Dynamo did you create it with?
over a month ago
·
#10001
0
Votes
Cancel
Hello Frederick,

I work with the version
Dynamo Core 2.01.5055 and Dynamo Revit 2.01.5065
When I open it with Dynamo For Revit, it works fine for me. (REVIT 2018)

Remaining at your disposal,
over a month ago
·
#10004
0
Votes
Cancel
I more or less solved your problem, I did not have the opportunity to launch it on REVIT but we must not be very far from the operation. In short, your logic was to start with a parallel sorting according to the abbreviation of the system and the description of the segment. However, the color you want to apply depends on 2 parameters, so you have to filter your elements in series (1st PVC filter, then second filter which is added to the elements filtered previously for the segment description)

I attach you the updated script!
over a month ago
·
#10049
0
Votes
Cancel
Hello Frederick,

I just tested the script you modified, it works perfectly and is exactly what I was trying to do. Anyway, thank you for taking a little of your time.

I'm starting to understand the logic of DYNAMO a little better. :)

Slts

Florentine
over a month ago
·
#13354
0
Votes
Cancel
Hello,

I just opened dynamo for the first time, following some tutorial viewing.

By downloading the HINCELIN Anne script and activating the "Rhythm" packages (2019.12.4), I find myself facing an error on the "tag host element" node:
Error: The custom node definition is not loaded.


Do I have to download another package for the script to run without error?

Thank you for your help
over a month ago
·
#13355
0
Votes
Cancel
Hello,

The "Tag Host Element" node comes from the Archi-lab.net package (version 2016.12.10).

Bonne journée.
over a month ago
·
#13356
0
Votes
Cancel
Hello,

Anne got ahead of me :D

suddenly I'll just add that Rythm offers a node called "WhatTheNode" which allows you to know from which package a node comes from!

cdlt
over a month ago
·
#13360
0
Votes
Cancel
At the top thank you for these 2 answers!

EDIT: I just tried the latest version of archi-lab, there is no more this neoud. I will try with the one you tell me.

What version of rythm is the "whatthe node" in? In 2019.12.4 there is not and I have to find out which package Element.ovverrideProjectionLineColor belongs to.
over a month ago
·
#13382
0
Votes
Cancel
Hello,

I did find a Whatthenode package, including the node of the same name.

On the other hand it returns me no package name and therefore, I do not know what Element.overrideProjectionLineColor belongs to.

Sorry for those beginner questions and thanks for your help

EDIT: So by running the script ... necessarily it works much better!
The knot does belong to the rhythm package ... but therefore I must not have the right version!
over a month ago
·
#13383
0
Votes
Cancel
Hello,

So, I just looked, I am using Rhythm 2017.11.6 and Element.OverrideProjectionLineColor is there.

Bonne journée.
over a month ago
·
#13387
0
Votes
Cancel
Thanks for your help Anne!

It works much better!

I just have a type of system where the color is changed is not correct ... I will find the why and how!
Thanks again!
over a month ago
·
#15035
0
Votes
Cancel
Hello everyone,

Here is my first post, as you I do not understand why this function is not native to revit, I am therefore attaching the dynamo that I created with your advice, THANKS!

the only constraint is to fill in the desired color in the "Description" of the system (And of all the system of the desired label category.

I'm waiting for your feedback ;)


Bastien
over a month ago
·
#15056
0
Votes
Cancel
Hi

I would like to know with which package the List Replace node present on Wiliam BOUSSEAU's script can be used
Please?
over a month ago
·
#15062
0
Votes
Cancel
Hi
it is present in the Orchid Package
over a month ago
·
#15065
0
Votes
Cancel
Hello Akli AM

After copying and adapting William's script, I used the Orchid package well, I did a test on CDCs and it works but when I draw a full network the script only works on the first CDCs and completely ignores others.
I suspect the "List reolace" node because it multiplies the rows in the lists and sometimes the labels do not match the CDC.

I attach a download link to illustrate my request

Can you help me please ?
over a month ago
·
#15066
0
Votes
Cancel
Hi
the orchid knot make you lose the order of the elements
uses the following configuration:
capture.jpg
over a month ago
·
#15067
0
Votes
Cancel
Thank Akli AM
I will test and keep you posted
over a month ago
·
#15069
0
Votes
Cancel
Hello Akli AM

I tested and the labels are well assigned to the CDCs but the script only does it on the first ones.
when there are several networks, only the first CDCs are taken into account
over a month ago
·
#15070
0
Votes
Cancel
Hello,
I did not understand exactly "works only on the first", can you pick up your example?
I just did a test not adding CDC networks and of course by re-executing the script, the labels are reassigned again
PS: the node used is "String.Replace" not list.replace of orchid
over a month ago
·
#15071
0
Votes
Cancel
Hi

At home, when I run the script, not all labels are reassigned.
only CDCs drawn first are affected, others are ignored
over a month ago
·
#15073
0
Votes
Cancel
Hello Jack,

it's strange, are you sure you have assigned the right type of service across the network?

cdlt
over a month ago
·
#15579
0
Votes
Cancel
Hello,

I would like to solve this problem within the design office for which I work and I am a beginner on Dynamo
i am looking for a dynamo trainer.
If anyone is interested, keep me posted

cordially
over a month ago
·
#15580
0
Votes
Cancel
Hello,

I recorded a video training and precisely the label colors are one of the points that I deal with.
This training should be published shortly.
I also provide face-to-face Dynamo training but usually in entities of my company or in engineering school.
So that might interest me.
over a month ago
·
#15774
0
Votes
Cancel
Hello,
I just made a little script on dynamo (without package or excel) which can apply colors to ducts and labels.
I hope this will help you
If this is what you are looking for, I will explain how it works [attachment] 1.PNG [/ attachment] [attachment] 3.PNG [/ attachment]




So much easier! I love
over a month ago
·
#15869
0
Votes
Cancel
Hello,

I further upgraded the script, all this automatically the color is detected and assigned to the label automatically.

Do not hesitate to give me feedback ;)
over a month ago
·
#16040
0
Votes
Cancel
Hello everybody

I had taken up Anne Hicelin's script earlier in the post that I had readapted for my system colors. Having switched to REVIT 2021, my script no longer works.
I am currently in dynamo core 2.5.0.7460 and dynamo revit 2.5.0.7586.

I think the issues are block or library version issues ... but I don't know how to fix them.
If anyone could help me, I thank them very much!
over a month ago
·
#16042
0
Votes
Cancel
Hello Gilles Boissonnade,

I just opened your script, you should take a look at this one. More automatic.

But actually I your problem is a package problem.

;)
over a month ago
·
#16043
0
Votes
Cancel
Hello,
i just tested your script on revit 2021, and it worked, it must be the packages.
I am using dynamo 2.0.3
Package as attachments.
Have a good day
over a month ago
·
#16044
0
Votes
Cancel
Hello,
it must be the clokwork package, you can replace it with "Element.OverrideColorInView"
cdt
capture.png
over a month ago
·
#16045
0
Votes
Cancel
Indeed Bastien, your script seems much lighter ... I tried, but the execution is finished with warnings and the color of the label has not been changed.

I have 2 warning in yellow:

Warning: Element.GetParameterValueByName expects argument type (s) (Revit.Elements.Element, string), but was called with (Function, string).

Warning: IronPythonEvaluator.EvaluateIronPythonScript the operation failed.
Traceback (most recent call last):
File " ", line 10, in
TypeError: iteration over non-sequence of type NoneType

On my projects, the colors of the networks are defined in the pipe and duct systems families. Is it this color that the script should recover?



For your Anne script, I tried with all the packages identical to yours, except for archilab-net which I left in 2021.25.21 to test Bastien's script ...
I have even more warnings! Have you tried it on dynamo 2.5?
over a month ago
·
#16058
0
Votes
Cancel
Hello Gilles

Can they share us a screenshot of these errors please.

can them send me your file revit or in part so that I have a look.

What type of label do you want to use it on?

BM
over a month ago
·
#16073
0
Votes
Cancel
Hello,

Attached the photos:
label type
Error 1 on Element.GetParameterValueByName
Error 2 on Python script From String

Hoping to shed some light on the subject
over a month ago
·
#16075
0
Votes
Cancel
hello Gille, can send me your REVIT file or at least just your file, with just a cana + label that does not work for me to look I think the problem comes from your pipe systems, to be sure a color to define inside? do not hesitate
over a month ago
·
#16076
0
Votes
Cancel
Hello,

Attached is a file with an EU cana and a label.

Title

Thank you again for your help!

NOTE: I had to make a wetransfer file because of the size ...
over a month ago
·
#16077
1
Votes
Cancel
For me I had no problem launching the dynamo as it is on your plan.

Check that on the first node it is correctly selected on "Pipe label" and that your active view is indeed the one that contains the pipes.

I give you a link to download the scripts if ever you have any doubt this one works well with your plan:

Link
over a month ago
·
#16078
0
Votes
Cancel
Hello,

Indeed it works now. I had saved a copy of your script, so as not to modify by bad manipulation ... the copy does not work, but the original does. Thank you

How do you make your sight active? I have to open and close the script on each new view I want to activate.

Thank you again .... and for Anne, this script seems lighter (and easier to use on X type of network / duct)

Would it be possible to have several input categories like "duct label", pipe label "to make the modification simultaneously?
For cable trays, this should not work since the code block indicates "type of system" and not "type of service".
over a month ago
·
#16079
0
Votes
Cancel
For the active view it is enough simply that is the one which is open on revit for it to work.

Otherwise you can do it on the whole project by modifying the attached image.

yes it is possible to have several categories, you copy all the code and you change the entry coir attached

For the CDC I just looked, my script will not work, I have the impression that there is no system for this kind of family (Sorry, I'm more HVAC ;) ). How do you manage the colors on your plans? via rules in your template?
over a month ago
·
#16083
0
Votes
Cancel
I just did a test ... I confirm that my active view is only the one when I open the script. If I change my view and run the script again, nothing happens and we can see that it remains on the initial opening view (.


When the script on the whole project, I have 4 errors:

Warning: Tag.TaggedElement expects argument type (s) (Revit.Elements.Tag), but was called with (Revit.Elements.Category).

Warning: Internal error, please report: removal of the reference of a non-pointer element.

Warning: IronPythonEvaluator.EvaluateIronPythonScript the operation failed.
Traceback (most recent call last):
File " ", line 10, in
TypeError: iteration over non-sequence of type NoneType

Warning: Element.OverrideColorInView expects argument type (s) (Revit.Elements.Element, DSCore.Color), but was called with (Revit.Elements.Category, null)

In PJ the script on the whole project.
over a month ago
·
#16084
0
Votes
Cancel
I am attaching you the modified script I went a little fast in my previous explanation, it was almost necessary to add a block. ;)

See pj.

For the other script, by view, I advise to use the "dynamo reader" see the PDF explanation attached part 3.2
over a month ago
·
#16085
0
Votes
Cancel
At the top, I just added the missing block on my script ... and it works!

Not on the whole project, but seen by seen without having to reopen the script ... so that suits me well!
(I have the same on DYNAMO or the player ...)

A very big thank you for your time devoted to answering me!

I think I understood the principle of the script without being able to re-edit it from 0.
This will allow me to adapt it to the cable tray, electrical installation, currently managed by filter.
over a month ago
·
#16086
0
Votes
Cancel
Hello,

Not on the whole project, but seen by seen without having to reopen the script.


The Element.OverrideColorInView node works only in the active view.
It is possible to add a "view" input with the "View SetElementOverrides" node which is a little more sophisticated.
This greatly improves the definition.
over a month ago
·
#16087
0
Votes
Cancel
Thank you @Alban de Chasteigner for your suggestion I will try. But the "default" is to select the correct view from the drop-down menu, no.

Thank you to you @gilles boissonna of, to have your feedback and to be able to discuss it make me progress.

I think I understood the principle of the script without being able to re-edit it from 0.


Do not doubt yourself! I also thought I was not able, I dragged my mouse on different forums by testing a lot of scripts and this is my first script without training or other baggage on dynamo! Everything is possible !

A little development time (3 days) I would say but what time to save in the end !!

I am not a genius, only a curious one!

:D
over a month ago
·
#16088
0
Votes
Cancel
The "Views" drop-down menu can be an input to Dynamo Player and there is also a "View ByName" node.
For my part, working on huge projects, I avoid definitions that require opening hundreds of views one by one!
3 weeks ago
·
#16727
0
Votes
Cancel
Hello, I'm taking the discussion on the way. Exciting, but the basic question was about the doors. Are your scripts adaptable? I am looking to apply a label color per type of door.
0
Votes
Cancel
Hello @hamel alain, thank you for your Script it works well with aeraulic networks.
when I change the category for hydraulic networks the scripts do that :(
0
Votes
Cancel
For me I had no problem launching the dynamo as it is on your plan.

Check that on the first node it is correctly selected on "Pipe label" and that your active view is indeed the one that contains the pipes.

I give you a link to download the scripts if ever you have any doubt this one works well with your plan:

Link


0
Votes
Cancel
Hello,

I congratulate the author of this script, it's a hit.
@+
There is no response to this discussion yet.
Be the first to answer it!
Do you have any questions?

Need technical support, advice or advice?


Discover Hexabim services

recruitment

Your career at N&Co

Find out more

Advertising

Advertising

Find out more

communication

Communication

Find out more

Hexabim

Log in

The Cron starts