Exception while trying to get SweptProfile

Exception while trying to get SweptProfile

o.petrashev
Advocate Advocate
431 Views
1 Reply
Message 1 of 2

Exception while trying to get SweptProfile

o.petrashev
Advocate
Advocate

Hello everybody.
Tell me please what my mistake is. I choose in the project Revit 2018.3 a column or beam element, I try to get SwaptProfile, here is my code:

      SweptProfile sweptProfile = element.GetSweptProfile ();

In one project I get SveptProfile in the other there is an exception:
Autodesk.Revit.Exceptions InplicableDataExseption

Please tell me what is the reason?

SwepPrifileNo.PNGSwepPrifileYes.PNG

0 Likes
432 Views
1 Reply
Reply (1)
Message 2 of 2

o.petrashev
Advocate
Advocate

The question is removed, found the reason.

0 Likes