Message 1 of 2
Not applicable
06-11-2018
09:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Revit API, it is easy to cast one type of Element into another. While in Dynamo, as far as I know there is no such way of casting. I have noticed that Mr. Tammik has mentioned something about RevitAPI Dynamo shell, so I post this for a solution.
Example:
Connector connector = null;
MEPCurve mep = elem as MEPCurve;
ConnectorSetIterator set = mep.ConnectorManager.Connectors.ForwardIterator();
MEPCurve mep = elem as MEPCurve;
ConnectorSetIterator set = mep.ConnectorManager.Connectors.ForwardIterator();
Looking forward to your brilliant answers.
Solved! Go to Solution.