- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
REVIT 2017, Windows 10, C#. Metric.
I downloaded the API samples; excellent for standard items like walls, wirnows etc. MEP is not included in the sample API items.
Need to create ppe segment using known coordinates positions of pipe ends; also known is the system name, pipe type nad diameter.
System: Domestic Cold Water
Pipe Type: PVC-DWV
Diameter: 65mm
Included:
using Autodesk.Revit.DB.Plumbing;
Found method to create pipe...
Autodesk.Revit.DB.Plumbing.Pipe.Create(doc,sys1,pipetype1,level1.Id,new XYZ(0,0,0), new XYZ(1250,1010,0));
for doc and level I can use...
Document doc = ActiveUIDocument.Document;
Level level1 = (Level)ElementFiltering.FindElement(doc, typeof(Level), "Level 1", null);
but I have no idea how to provide the system ID and pipe type ID ... please help ...
Thank You,
Kevin.
Solved! Go to Solution.
