Can Builtincategory be used inside of a family document?

Anonymous

Can Builtincategory be used inside of a family document?

Anonymous
Not applicable

This is a simple question however I seem to be creating my own string constants for categories inside of a revit family document, note Im not talking RVT files, Im talking RFA files.

So do I keep doing what i am doing or is there a safer/faster method, technique to say check ...

 

if(category == myConstString.Casework) ?

{

//do something here

}

0 Likes
Reply
Accepted solutions (1)
384 Views
1 Reply
Reply (1)

jeremytammik
Autodesk
Autodesk
Accepted solution

Sure, the built-in categories can be used in a family document just the same way as in a project.

 

It is mostly better to use the numerical enumeration value instead of a string, though:

 

  • More performant
  • Language independent

 

Cheers

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder