New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming Object Styles (line styles) inside a family #587
Comments
There are not "Line Styles" inside a family. There are "Graphic Styles" (object styles) that could be assigned to lines (detail or model) and other solid elements inside the family. Revit interface doesn't let you 'select' these items and a selection is required for the ReValue tool. I have plans to improve this tool so it is easy to select all sorts of Types and Styles around the Revit model. At the moment even if you select these graphic styles, the tool can not rename them since the renaming mechanism is different than other elements. I'll make a note of fixing this.
I'd like to point out two tools that might come handy in the future with similar issues:
Both these tools still need improvements. I'll keep this open until the task listed above is completed. |
Thanks for the quick response Ehsan!
Yes, it is the "Graphic Styles" (object styles) that I need to rename
inside the family. I have hundreds of families to rename, so doing it
manually wouldn't be very smart. So, if additionally this task can be
performed without having to open the family then it would be so wonderful.
I realize as I write this that it may be very difficult to do that, but I
guess "if we can dream it we can achieve it"...right?
I hope you are having a great day,
Daniel
…On Thu, May 2, 2019 at 11:18 AM Ehsan Iran-Nejad ***@***.***> wrote:
There are not "Line Styles" inside a family. There are "Graphic Styles"
(object styles) that could be assigned to lines (detail or model) and other
solid elements inside the family. Revit interface doesn't let you 'select'
these items and a selection is required for the ReValue tool.
I have plans to improve this tool so it is easy to select all sorts of
Types and Styles around the Revit model. At the moment even if you select
these graphic styles, the tool can not rename them since the renaming
mechanism is different than other elements. I'll make a note of fixing this.
- Make ReValue smart about changing all types of parameters on all
categories.
I'd like to point out two tools that might come handy in the future with
similar issues:
-
pyRevit > Selection > Select > Select Element Types list all element
types in a model and provides an easy interface to 'select' those.
-
pyRevit > pyRevit > Spy > List Elements also provides a way to list a
series of categories with their element Ids.
Both these tools still need improvements.
I'll keep this open until the task listed above is completed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL6MQVA4AQXF3KY7PTMDOSLPTMA4JANCNFSM4HJ6WVRA>
.
|
It's actually not that difficult. Take a look at this I might be able to help you with the python script that renames the graphic styles inside the families for now, until the pyRevit tools are updated (most probably in v4.7 final) |
Thanks! Do I understand correctly that the video explains a way to access
different files without opening them? And then additional programming would
be necessary to perform a task (e.g.: renaming "Graphic Styles" inside a
family)?
…On Thu, May 2, 2019 at 11:27 AM Ehsan Iran-Nejad ***@***.***> wrote:
It's actually not that difficult. Take a look at this
<https://www.youtube.com/watch?v=_HldsaHA8i8>
I might be able to help you with the python script that renames the
graphic styles inside the families for now, until the pyRevit tools are
updated (most probably in v4.7 final)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL6MQVBTLWNZTRGRDU5NKV3PTMB7HANCNFSM4HJ6WVRA>
.
|
Yes pyRevit |
Closing |
{ } ReValue Command
I tried using the ReValue Command to rename all the object styles (line styles) inside a family. But I noticed I have to have the lines selected and it will only change those styles. There are other styles that also need to be renamed within the family.
Solution:
It would be great if I could grab all the object styles (line styles) inside a drafting family and change the name.
Thank you!!
Dan
The text was updated successfully, but these errors were encountered: