Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can not get the reference by Name.
It is a Japanese window family.
Could anyone give me some advice?
Here is my code.
public override void GetTopBottomReference()
{
if (Element is not FamilyInstance familyInstance)
return;
try
{
TopReference = familyInstance.GetReferenceByName("記号");
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"TopReference Getting Error: {ex.Message}");
}
try
{
BottomReference = familyInstance.GetReferenceByName("額縁");
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"BottomReference Getting Error: {ex.Message}");
}
}
Solved! Go to Solution.