Hi All,
I got some issue on pipe diameter measurement. After creting pipe, the diameter value that shown in option bar is quite different from the value that i set in c# code (seee in following figure)
here is my revit api code:
Pipe pipe = Pipe.Create(doc, domesticHotWaterSystemType.Id, firstPipeType.Id, level.Id, p0, p1); Parameter parameter = pipe.get_Parameter(BuiltInParameter.RBS_PIPE_DIAMETER_PARAM); parameter.Set(1);
According to the picture, the diameter that measured in display is 305mm but the option always shows 200mm
can u guys enlighten me how to do it? quite noob in revit api.
Best Rgds,
Mr.Naing
Hi All,
I got some issue on pipe diameter measurement. After creting pipe, the diameter value that shown in option bar is quite different from the value that i set in c# code (seee in following figure)
here is my revit api code:
Pipe pipe = Pipe.Create(doc, domesticHotWaterSystemType.Id, firstPipeType.Id, level.Id, p0, p1); Parameter parameter = pipe.get_Parameter(BuiltInParameter.RBS_PIPE_DIAMETER_PARAM); parameter.Set(1);
According to the picture, the diameter that measured in display is 305mm but the option always shows 200mm
can u guys enlighten me how to do it? quite noob in revit api.
Best Rgds,
Mr.Naing
What values are assigned to this pipe in MEP-system properties?
Show the screenshot of pipe dimension parameters...
What values are assigned to this pipe in MEP-system properties?
Show the screenshot of pipe dimension parameters...
Anyway I have had the issue having created the correct diameter in the Mech settings...
Anyway I have had the issue having created the correct diameter in the Mech settings...
Pipe pipe = Pipe.Create(doc, domesticHotWaterSystemType.Id, firstPipeType.Id, level.Id, p0, p1); Parameter parameter = newPipe.LookupParameter("Diameter"); parameter.SetValueString("400.0 mm");
Pipe pipe = Pipe.Create(doc, domesticHotWaterSystemType.Id, firstPipeType.Id, level.Id, p0, p1); Parameter parameter = newPipe.LookupParameter("Diameter"); parameter.SetValueString("400.0 mm");
Can't find what you're looking for? Ask the community or share your knowledge.