How to detect if family is line based in family document

How to detect if family is line based in family document

frankholidayjunior
Advocate Advocate
879 Views
2 Replies
Message 1 of 3

How to detect if family is line based in family document

frankholidayjunior
Advocate
Advocate

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

0 Likes
Accepted solutions (1)
880 Views
2 Replies
Replies (2)
Message 2 of 3

frankholidayjunior
Advocate
Advocate
Accepted solution

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

NZhouSNYLF
Contributor
Contributor

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?

0 Likes