Tin Surface delete short lines or Delete small area triangle

Tin Surface delete short lines or Delete small area triangle

NoelRico
Advocate Advocate
2,041 Views
4 Replies
Message 1 of 5

Tin Surface delete short lines or Delete small area triangle

NoelRico
Advocate
Advocate

Hi Everyone,

 

Is there a way to delete lines in tin surface with length less than 3' or triangles  with area less than 0.5 sf. programmatically? or delete lines or triangle inside close polyline. 

 

I just want to delete the curb/gutter tin lines and doing it manually using delete line by fence or inside polygon.

I want only to extract tin lines of roadway.

 

Thanks for any idea and suggestions.

 

Noel

 

0 Likes
2,042 Views
4 Replies
Replies (4)
Message 2 of 5

hosneyalaa
Advisor
Advisor

My English is not good

Can you have a picture that shows what you want? Maybe you want to delete the closed polyline after extracting it from the surface

Message 3 of 5

NoelRico
Advocate
Advocate

Hi', Thanks for the reply. In Civil 3D Build definition there is Use maximum triangle length but no minimum length. suppose to be I want the minimum length to not include small tin triangles such as the curb and gutter.

 

in c# there is TinSurfaceMeber called DeleteLine but no sample how to use.

 

I found this C# code online but only deleting breakline. 

// Get the TIN Surface
TinSurface tinSurface = surfaceId.GetObject(OpenMode.ForWrite) as TinSurface;

// Lets try to Remove Breakline using RemoveAt(int)
tinSurface.BreaklinesDefinition.RemoveAt(0);

// rebuild the surface
tinSurface.Rebuild();

 

my main purpose is if by using code is to loop to all tin lines then get its length then if less than 3' delete it.

 

Thanks again

 

 

0 Likes
Message 4 of 5

hosneyalaa
Advisor
Advisor

hi

I have never done it before

But this way you need

can help you

http://docs.autodesk.com/CIV3D/2016/ENU/API_Reference_Guide/html/4e017e9d-6750-968c-3470-0c4b9dba101...

 

 

Screenshot_20210923-212343.png

Message 5 of 5

hosneyalaa
Advisor
Advisor

Hi @NoelRico 

 

Did you come up with a solution? 

you can share it, we will see it

Thanks

0 Likes