Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Trouble with Slope and Delta Y in Subassembly composer

lunhatduy92
Enthusiast

Trouble with Slope and Delta Y in Subassembly composer

lunhatduy92
Enthusiast
Enthusiast

I have a trouble with Slope and Delta Y in Subassembly composer. Please see the pictures below:

1.png2.png3.png

I want to the Delta Y from P3 to P10 = 6, so I use 6-(P4.Y-P3.Y). But when I import to Civil it was not 6. It is 5.8343. Perhaps I used wrong API. Have anybody could show it for me. Thank you so much!

I also attack my pkt file below.

0 Likes
Reply
Accepted solutions (2)
890 Views
4 Replies
Replies (4)

KMercier_C3D
Advisor
Advisor
Accepted solution

It seems to be measuring as 6 for me in Civil 3D so I don't know what the issue is but as a few general changes...

 

  • The surface will (most likely) never be flat and therefore your decision on testing the depth to P3 should not test against AP1 which is on the surface at the origin. I would recommend changing the AP1.DistanceTo("P3")>6 to math.abs(P3.DistanceToSurface(EG))>6
  • Similarly I would change AP1.DistanceTo("P13")>12 to math.abs(P13.DistanceToSurface(EG))>6
  • I'm not sure why the ylength on from P3 to P10 isn't working out as 6 as wanted but for P10 you could change it to DeltaY=6-L3.ylength to see if that corrects it for you


Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Anonymous
Not applicable
Accepted solution

You can try using the expression 6-(math.abs(P4.Y)+math.abs(P3.Y)) for "Delta Y"111.JPG

lunhatduy92
Enthusiast
Enthusiast

Great! It worked. Thanks both of you.

0 Likes

lunhatduy92
Enthusiast
Enthusiast

especially thanks for your recommend changing. ^_^

0 Likes