Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66815

Issue API - How to Change Fitting Diameter

$
0
0

Hello,

 

I'm trying to create a code to change the size of the conduit and the fittings connected.

To change the size of the conduit is easy, this code do the job.

 

Parameter parameter = ele.get_Parameter(BuiltInParameter.RBS_CONDUIT_DIAMETER_PARAM);

 

 

The problem is on the fitting family, don't have any BuiltInParameter...

So I try to select the Connector and change the Radius value.

Kinda works but only with round values... When I try to apply a unround number I receive a ArgumentOutOfRangeException.

 

I'm using Revit 2018 and I don't if this ArgumentOutOfRangeException is a bug or has a better way to change Connector size.


Viewing all articles
Browse latest Browse all 66815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>