Calling All .NET API Developers...

Calling All .NET API Developers...

fastball51889
Participant Participant
1,524 Views
5 Replies
Message 1 of 6

Calling All .NET API Developers...

fastball51889
Participant
Participant

Looking for somebody to write what should be an easy .NET API...I have a sample line group and need to extract the max elevation of each existing ground TIN surface section within the group. I ultimately want to import a profile from text file so I need sample line station + section max elevation for each sample line in the sample line group. Can anybody help me out??? The max elevation is easily found in the sample line properties or section properties, but I can't find a way to extract that data from hundreds of sample lines at once.

 

Thank you in advance!

0 Likes
Accepted solutions (1)
1,525 Views
5 Replies
Replies (5)
Message 2 of 6

wfberry
Mentor
Mentor

Did you try this forum:

https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190

If not, perhaps your best source.

 

Bill

 

 

0 Likes
Message 3 of 6

Jeff_M
Consultant
Consultant

@fastball51889 shoot me a message, I have something that should do what you want.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 4 of 6

Jeff_M
Consultant
Consultant

2019-11-30_12-00-15.png

And the resulting contents of the file for importing a Profile:

0 649.970491314586
25 651.527815643642
50 653.085139972699
75 654.642464301756
100 656.317535244179
125 658.940273466198
150 661.563011688217
175 664.185749910236
190.6 665.xxx-xxxxxxxx
200 666.254390078515
225 667.288530356162
250 667.687826657534
275 668.049878754001
300 668.660340047713
316 670.179949352341
325 671.034729586194
350 670.612029668621
375 669.505815388683

 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 5 of 6

Jeff_M
Consultant
Consultant
Accepted solution

Attached is a ZIP file with a .NET dll to extract the high points of the first TIN sections in a SamplineGroup. This tool currently assumes that there is just 1 TIN section per sample line. If there are more, just the first one encountered is used. Command name is "ExtractSampleLineGroupHighPoints".

 

Be sure to Unblock the ZIP file before opening and extracting the DLL. This file should work with C3D 2018-2020, perhaps newer releases as well.

Jeff_M, also a frequent Swamper
EESignature
Message 6 of 6

fastball51889
Participant
Participant

Thank you, Jeff! This works great!

0 Likes