Bug in Revit API

Bug in Revit API

sizy458
Advocate Advocate
634 Views
2 Replies
Message 1 of 3

Bug in Revit API

sizy458
Advocate
Advocate

Hello,


When I trace a rebar with method Rebar.CreateFromCurvesAndShape into wall which was traced by line by line since user interface, its work good.

I have exception when i trace rebar into wall which has traced by rectangle method since user interface.

 

An exception of type 'Autodesk.Revit.Exceptions.ArgumentException' occurred in RevitAPI.dll but was not handled in user code
Additional information: host is not a valid rebar host.
Parameter name: host occurred

 Cordial.

0 Likes
635 Views
2 Replies
Replies (2)
Message 2 of 3

Sean_Page
Collaborator
Collaborator

Have you looked at the API reference for the error?

 

https://www.revitapidocs.com/2016/10ddc28e-a410-5f29-6fe9-d4b73f917c54.htm

Sean Page, AIA, NCARB, LEED AP
Senior Partner, Computational Designer, Architect
0 Likes
Message 3 of 3

sizy458
Advocate
Advocate

yes i have always this error only on wall drawed by rectangle

0 Likes