api revit columns

api revit columns

Anonymous
Not applicable
702 Views
3 Replies
Message 1 of 4

api revit columns

Anonymous
Not applicable

I can not upload the right column .... anyone can help me ... Thanks for your cooperation ..... I attach files vb.net and images  error

 

In particular fails to recognize and load the structural Columns e Framing

 

'add symbols of beams and braces to lists
Dim categoryName As String = familyType.Category.Name

If "Structural Framing" = categoryName Then
       m_beamMaps.Add(New SymbolMap(familyType))
       m_braceMaps.Add(New SymbolMap(familyType))
ElseIf "Structural Columns" = categoryName Then
       m_columnMaps.Add(New SymbolMap(familyType))
End If

0 Likes
703 Views
3 Replies
Replies (3)
Message 2 of 4

Joe.Ye
Alumni
Alumni

 

 

The code project itself doesn't load any family.

This error indicates there is no structural column family in the target document. So you need to load at least one such family before you run this external command. You can load structural column family manually using Revit's load family command.

 

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 4

Anonymous
Not applicable

The error is due to this reason, I had already uploaded some of the pillars of Revit families ... but it does not work and keeps giving me the error .... I point out that I use revit in Italian .... .... but the problem of the program vbnet is the loading of the names of the pillars ..... Thanks for your cooperation

0 Likes
Message 4 of 4

Joe.Ye
Alumni
Alumni

 

  Revit has two kinds of column, Architecture column and Structural column. The possible reason is that the pillar you loaded is not structural column. Please make sure structural column is already loaded, before run this command.



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes