Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Warning after NewFamilyInstance

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
AndrewButenko
419 Views, 2 Replies

Warning after NewFamilyInstance

Hello! I  have warning after creation NewFamilyInstance

"Mass contains only mesh geometry, which can’t be used to compute Mass Floors, volume, or surface area."

 

document.Create.NewFamilyInstance(New XYZ(0, 0, 0), fs, aw, [Structure].StructuralType.UnknownFraming)

fs -family symbol

aw-view

But when I create instance from same family in Revit (not programmatically) then I have not the warning.

What can I do for the warning not show? 

 

2 REPLIES 2
Message 2 of 3

HI @AndrewButenko,

Are you searching for the code to deleting the warning messages when it appear??

see the below links

Handling failures from IFailuresPreprocessor

suppress-unwanted-dialogue


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Thank you very match. It helped me.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report