create RailingType:cannot set the heigt of NonContinuousRailInfo

create RailingType:cannot set the heigt of NonContinuousRailInfo

506988194
Explorer Explorer
320 Views
2 Replies
Message 1 of 3

create RailingType:cannot set the heigt of NonContinuousRailInfo

506988194
Explorer
Explorer

Steps to reproduce
When I was trying to create a RailingType,I got two problems.
1.when creating the RailStructure(NonContinuousRailStructure) of the RailingType,seting the height of NonContinuousRailStructure,I got an error:Autodesk.Revit.Exceptions.ArgumentException:“The height height is not valid for the non-continuous rail.
2.when creating BalusterInfo and setting the BalusterFamilyId,there is a BalusterInfo from the RailingType copy source,which I can set it's BalusterFamilyId,but when I set the BalusterFamilyId of the copy,I got an error like: Autodesk.Revit.Exceptions.ArgumentException:“The balusterFamilyId doesn't refer to a valid baluster family.


Expected results
The height of NonContinuousRailStructure changed to 2200.
The BalusterFamilyId of BalusterInfo setted.


Actual results
Autodesk.Revit.Exceptions.ArgumentException:“The height height is not valid for the non-continuous rail.
Autodesk.Revit.Exceptions.ArgumentException:“The balusterFamilyId doesn't refer to a valid baluster family.


URL where issue occurs
www.xxx.com


Browser
Other


OS
Windows


Attachment




0 Likes
321 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

2200 feet is a very large number. Maybe you need to convert your units? The Revit database length unit is imperial feet.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

506988194
Explorer
Explorer

Thanks for reply,the first question is solved.

What about the second?
I try to set the paramter separated many times.When I tried first,seconed......,sometimes It's OK.but the before times always shows the error.

rt.BalusterPlacement.BalusterPattern.GetBaluster(3).BalusterFamilyId= dalg.GetFamilySymbolIds().First();

0 Likes