I create a Family via a Routine. It's meant to be a System of gaskets in a segmental tunnel lining system.
This Family is instantiated for every segmental lining ring which is instantiated and both translated and rotated into place using the same transforms. Depending on which template (which actually work) I use, several things happen:
1. The FamilyInstances cannot be rotated, only translated
2. famDoc.FamilyCreate.NewSweep does not work, even though it works in some templates, which however are useless for Placement.
Templates which worked partially are:
1. Metric Generic Model Adaptive
2. Metric Generic Model
3. M_Allgemeines Modell
However none of these templates solve the 2 requiremenets:
1. Create a sweep of the gasket/seal
2. translate AND rotate a familyInstance
Does someone have an idea how this can be fixed?
Solved! Go to Solution.
Solved by dirk.neethling. Go to Solution.
Solved by FAIR59. Go to Solution.
I think the Metric Mechanical Equipment / M_Mechanische Geräte template will do those things.
When I use "M_Mechanische Geräte" as template, I get this error even though the template file is in the Folder as requested:
I wish the Building Coder would just have try...catch, then I can locate the problem. Now I have to search around where these popups are generated.
M_Mechanische Geräte template is drawing the seal. However when I call the following, it Returns null for profileSymbol:
profileSymbol = Util.FindFamilySymbol(doc, ProfileSymbolName, ProfileSymbolName) as FamilySymbol;
with ProfileSymbolName = "SegmentDichtung"
I'm not familiar with this method (Util.FindFamilySymbol), but I will take a guess that the 2nd argument needs to be the familyName.
Hello FAIR59,
thanks, M_Mechanische Geräte template met both requirements:
1. allow famDoc.FamilyCreate.NewSweep
2. Transform familyInstance in all axes, incl. Rotation
Regards, Dirk
The solution is to use General Family type,
Metric Generic Model.rft
then use the method in the following thread to do transformations: