- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I am somewhat confused about how exactly do these FamilyTypes and FamilySymbols work. For example:
1. We store our Family files on a DMS system so that all the families would be accessible for everyone in our company.
2. To link a family file to a DMS info record we created some Shared Parameters and added them to our families + then we set these paremeters on our Families and their Types.
3. Every once in a while an engineer, designer or architect creates a new Family and some Types to go with it
4. Now we need to check our project model if it contains any of those new families that don't have DMS parameters set
5. We created a code snippet that picked up all the visible FamilyInstances on the model
6. One-by-one we iterate through these instance and get a FamilySymbol out of it
7. Now arises the need to change the shared parameters of this symbol but that seems to be nigh impossible. However we have a workaround (Not completely trustworthy in my opinion) for that.
8. From FamilySymbol we get Family, then FamilyDocument, then FamilyManager that has Property called Types. Finally we iterate through these types and try to match one of them to the FamilySymbol we got previously. We are doing that using .Name property on both FamilyType and FamilySymbol.
9. There are rare cases when a Family contains only one Type and when that happens FamilyType.Name seems to be empty however FamilySymbol.Name returns Family.Name. We can't match FamilySymbol to FamilyType when that is the case.
Now that our problem is somewhat explained I'd like to ask - is there any way to convert a FamilySymbol into FamilyType without 20+ lines of code?
If there is could somebody please explain the difference between FamilyType and FamilySymbol classes?
Solved! Go to Solution.