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: 

How to detect if family is line based in family document

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
frankholidayjunior
555 Views, 2 Replies

How to detect if family is line based in family document

How to detect if family is line based in family document?

2 REPLIES 2
Message 2 of 3

switch (famdoc.OwnerFamily.FamilyPlacementType)
{
case FamilyPlacementType.Adaptive:
return false;
case FamilyPlacementType.CurveBased:
return false;
case FamilyPlacementType.WorkPlaneBased:
return false;
default:
return true;

}

Message 3 of 3

how about in project document? i want to place instance so FamilyHostingBehavior (BuiltInParameter.FAMILY_HOSTING_BEHAVIOR) is not enough, so how to get FamilyPlacementType at project document w/ only family types available?

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community