Skip to content
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

Closed
DanGarnier opened this issue May 2, 2019 · 6 comments
Closed

Renaming Object Styles (line styles) inside a family #587

DanGarnier opened this issue May 2, 2019 · 6 comments
Labels
Enhancement Enhancement request [class->Improved #{number}: {title}]

Comments

@DanGarnier
Copy link

DanGarnier commented May 2, 2019

{ } 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.

Annotation 2019-05-02 100732

Thank you!!
Dan

@eirannejad
Copy link
Owner

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.

@eirannejad eirannejad added the Enhancement Enhancement request [class->Improved #{number}: {title}] label May 2, 2019
@DanGarnier
Copy link
Author

DanGarnier commented May 2, 2019 via email

@eirannejad
Copy link
Owner

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)

@DanGarnier
Copy link
Author

DanGarnier commented May 2, 2019 via email

@eirannejad
Copy link
Owner

Yes pyRevit run allows batch executing a python script over a series of revit models

@jmcouffin
Copy link
Collaborator

Closing
Issue older than a year.
Thanks for pointing it out.
If you feel it is still relevant, feel free to reopen the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhancement request [class->Improved #{number}: {title}]
Projects
None yet
Development

No branches or pull requests

3 participants