bool startpointallowjoin = StructualFramingUtils.IsAllowedAtEnd(item1 as FamilyInstance,0);
bool endpointallowjoin = StructualFramingUtils.IsAllowedAtEnd(item1 as FamilyInstance, 1);
if(startpointallowjoin)
{
StructualFramingUtils.DisAllowJoinAtend(item1 as FamilyInstance, 0);
}
if (endpointallowjoin)
{
StructualFramingUtils.DisAllowJoinAtend(item1 as FamilyInstance, 1);
}
JoinGeometry.UnjoinGeometry(doc,item1,item2);
if (startpointallowjoin)
{
StructualFramingUtils.AllowJoinAtend(item1 as FamilyInstance, 0);
}
if (endpointallowjoin)
{
StructualFramingUtils.AllowJoinAtend(item1 as FamilyInstance, 1);
}
Revit 梁join需先設置join屬性
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.