Code String code string to connect points with the same elevation ????

Code String code string to connect points with the same elevation ????

melantonuky
Advocate Advocate
531 Views
8 Replies
Message 1 of 9

Code String code string to connect points with the same elevation ????

melantonuky
Advocate
Advocate

I have a problem like in the picture below, is there a code string to connect points with the same elevation ???
thank you

0 Likes
532 Views
8 Replies
Replies (8)
Message 2 of 9

nkiakas
Advisor
Advisor

Hi @melantonuky 

 

Di you try in feature line options of the corridor, to let the feature lines be inwards/outwards or to tick the box "add extra points"?

Can you share your file to take a look?

 

Regards

0 Likes
Message 3 of 9

melantonuky
Advocate
Advocate

this is the dwg and the sac file sir 
please help me

0 Likes
Message 4 of 9

melantonuky
Advocate
Advocate

This sub assembly file works on straight road alignments only, when the road alignment is circle and curve, the slope corridor is not formed according to the existing elevation.

0 Likes
Message 5 of 9

nkiakas
Advisor
Advisor

Hi @melantonuky 

 

Do you want to remove the red and the blue to be added (see the attachment)

 

Regards

0 Likes
Message 6 of 9

nkiakas
Advisor
Advisor

Hi @melantonuky 

 

I had a quick look in your file.

I found out that in decisions inside the SAC you used a lot the function P1.Elevation.

This function returns the absolute elevation of the Point, from the 0.0 (the mean sea level).

I think you have to use the function P1.DistanceToSurface(YourSurface). This function returns positive if P1 is above and negative value if P1 is below the surface.

Because you compare the value with a maxfill (or maxcut) the you have to use also the Math.ABS(YourValue), to return always the absolute value (always positive).

So, replace your code P1.Elevation with Math.ABS(P1.DistanceToSurface(EG)).

With this you will solve the problems with the connection of points with same elevations on the bench, but will create other connection problems in the bottom (see the attachment). These problems i think you can solve by working more, by assigning the proper codes, because i did not go deep your subassembly to check your codes.

Also i found out in the beginning of your subbassembly, that you add AP1 and AP2 to see if you are in a cut or fill. For this checking you can also use the DistanceToSurface function only with one point.

 

Regards

0 Likes
Message 7 of 9

tcorey
Mentor
Mentor

Connect points of the same elevation? Wouldn't those be contours?

 

You can use User Contours if the elevation is not a standard major or minor increment.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 8 of 9

melantonuky
Advocate
Advocate

2.png3.png1.png

0 Likes
Message 9 of 9

melantonuky
Advocate
Advocate

What I mean is, the formed corridor does not connect the same elevation on the bench.2.png3.png1.png

0 Likes