AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

rounding of a pipes length sum in report creator

2 REPLIES 2
Reply
Message 1 of 3
mcray100500
1189 Views, 2 Replies

rounding of a pipes length sum in report creator

Hello!

I have a report for counting lengths of the pipes. Pipes are grouped according to DN. The values of the lengths of the grouped pipes is rounded to three decimal places and looks like this: 0.108; 4.599; 71.285.

Now I need to round this values up to a larger whole, in other word, looks like this: 1; 5; 72.

Is there a way to do this?

 

Thanks in advance!

Artyom Khrapov
Refrigeration Systems and Technologies
2 REPLIES 2
Message 2 of 3
KenFauver
in reply to: mcray100500

You will need to create a new expression for this to work. If you haven't figured this out yet attach the report to this post and I'll take a look at it.

If the post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!


Regards,

Kenneth G. Fauver
Technical Sales Specialist – Plant
Oil and Gas Solutions
Message 3 of 3
jdelucaQF5BX
in reply to: KenFauver

I would like to round piping lengths UP to a whole number (i.e. 9.3 goes to 10).  I tried the Ceiling expression, but it seems inconsistent.  It rounded 0.5 to 2, 9.52 to 13, 15.8 to 17, etc.  However, there was one place where it perfomed as I expected and rounded 13.8 to 14.  Is this the right expression to use?  If so, is there a way to make it more accurate?  The complete expression for "Quantity" in my BOM Report is pasted below.  (The division by 12 is to have the output in feet instead of inches.  I also have an expression to output the number of bolts instead of bolt sets)

 

Iif(IsNullOrEmpty([BoltSet_NumberInSet]),Iif(IsNullOrEmpty([Pipe_CutLength]), 1,Ceiling([Pipe_CutLength]/12)),[BoltSet_NumberInSet])

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost