Results 1 to 4 of 4

Thread: Label Expression for a Combined Angle and Vertical Bend

  1. #1
    Member
    Join Date
    2022-05
    Posts
    2
    Login to Give a bone
    0

    Default Label Expression for a Combined Angle and Vertical Bend

    I am looking an expression for a label style that will include the PI angle, Vertical angle and the Combined angle between the two. I have an alignment and a vertical profile with bends at the same horizontal and vertical point. This is for pipe runs that have the same horizontal PI and Vertical PI's.
    All I'm finding is expressions that are horizontally and expressions that are vertically but I'm looking for a combined one.

    I have the equation in the image attached.

    Calculation of Resultant Angle of a Combined Angle Bend.png

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,100
    Login to Give a bone
    0

    Default Re: Label Expression for a Combined Angle and Vertical Bend

    The available Expression variables for Fittings in Pressure Pipe Networks are Resultant Horizontal Angle and Resultant Vertical Angle. Hopefully, those will help if you are working with those element types.

    If you are attempting to create an expression based off of two different types of Civil 3D elements, such as an Alignment and a Profile, you are probably out of luck. The Label Expressions Civil 3D allows are for one element type. It does not allow for reference to other element types. You will need to have a custom routine to calculate that expression. This custom routine could potentially be generated through AutoLISP, .Net, or possibly Dynamo for Civil 3D.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Member
    Join Date
    2022-05
    Posts
    2
    Login to Give a bone
    0

    Default Re: Label Expression for a Combined Angle and Vertical Bend

    Thanks for the quick reply.
    I wrote the expression in pipe fittings without error and tried to add a label to it but I must be missing an element or something. This is my expression:
    Code:
    ACOS((COS({Branch Angle 1})*COS({Branch Angle 2})*COS(Angle))+(SIN({Branch Angle 1})*SIN({Branch Angle 2})*SIN(Angle)))
    Is Branch 1 and Branch 2 the two angles or should I use something else?
    Last edited by Opie; 2022-05-05 at 12:12 PM. Reason: added [code] tags

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,100
    Login to Give a bone
    0

    Default Re: Label Expression for a Combined Angle and Vertical Bend

    What was the error? More specifics will help find a solution.

    Can you supply a sample drawing with just the elements needed to diagnose your issue?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Horizontal angle of rotated vertical bend
    By pjoconnor599259 in forum AutoLISP
    Replies: 18
    Last Post: 2020-04-22, 08:22 PM
  2. 2018: Expression for Angle of Deflection in Label?
    By hannac25 in forum AutoCAD Civil 3D - Alignments
    Replies: 1
    Last Post: 2017-09-07, 01:21 PM
  3. 2014: Alignment Offset Label at bend to parallel line
    By bcole.200021 in forum AutoCAD Civil 3D - Alignments
    Replies: 3
    Last Post: 2016-05-26, 09:23 PM
  4. 2012: U-Bend or Around the Bend.
    By Gabriel Black in forum Revit MEP - Families
    Replies: 0
    Last Post: 2012-03-22, 01:11 PM
  5. Bend Line in Flat Pattern Indicate Bend Direction
    By inventor.wishlist1738 in forum Inventor Wish List
    Replies: 1
    Last Post: 2006-05-18, 03:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •