It seems that when I create a Corridor Surface with the 2015 API in one of my commands, the resulting TIN has no triangles - so FindElevationAtXY does not work… However, when my command has ended and control is given back to the UI, the Properties Dialog of the newly made TIN reports that it has triangles. I have also tried using two transactions – one to create the Corridor Surface and one to read out the properties of the resulting TIN, but also in this case there are no triangles.. (I add one single Link Code to the Surface and use Corridor Extents as Boundary)
Is it a bug, or why this behaviour? Workaround to get FindElevationAtXY working?
Solved! Go to Solution.
Solved by rasmusfb. Go to Solution.
Can you try rebuild the corridor?
I of course rebuild the corridor at the end of the first transaction where I add the corridor surface.
Hi,
I made a testing code with:
1. select a corridor
2. create a new corridor surface with Corridor.CorridorSurfaces.Add()
3. the newly created surface has no triangles
This is expected, same happens on UI
And to complete the test, at a second command I can open the same newly created surface, still no triangles.
If you have a different behavior on the API, can you reproduce the same on the UI?
Again; I rebuild the corridor at the end of the transaction where I add the corridor surface. Next, if I start a new transaction in the same command and read out the corridor surface, it has no triangles. When my command has ended, I can look at the corridor surface in the UI and it has triangles. In the UI, if you add a corridor surface and rebuild the corridor, the resulting surface has triangles.
I may be missing a step then: when I try on the UI the surface has NO triangles. Can you clarify the steps please?
I'd try splitting up the command by using a LispFunction and calling the LispFunction at the end of the command creating the corridor.
While in the UI, you rebuild the corridor after adding a corridor surface, in code you rebuild the surface...
My corridor surfaces are empty, too. I was able to select them in Prospector to delete them in Model Space, but each time I try using the UI to make another corridor surface, it just adds another entry in the Corridor Surfaces dialog box for that corridor, and I add another corridor-extents boundary, and it just adds an entry into Prospector... that is blank!
Weirdly, I was able to make a corridor surface for the intersection, but not the roads.
I have already deleted the corridors entirely and re-created them, to no avail.
I notice that I do not have the option of Adding as Breaklines... I have no idea if that is significant to creating a corridor surface.
I have tried closing Civil 3D 2017, and re-opening, but that did nothing.
HELP!
@srleone, replying to a 3 year old post which has been marked as solved is a good way to not get any responses. In the future, start a new thread and include a link back to the old thread if you feel that thread helps describe your issue.
I see in your images that you have not added any data to the surfaces. Make sure you add links and/or featurelines to the surface. See that section of the Corridor Surface tab that has the title "Add Data"? It's there for a reason.... 🙂
The reason is, I was never taught to do so.
But I had ended up trying that out of desperation... and it worked!
Thank you for replying 🙂
Hi,
I too got a similar problem but I ensured, data is added.
I created corridor surfaces and pasted in the composite surface. One day suddenly one of the corridor surface got missed while all the other corridor surfaces are working fine. I found that there is no data in that corridor surface. I tried changing corridor regions, I could see it reflecting on the drawing. Can you please let me know what might be the reason and is there any way out, other than recreating the corridor again.
Thanks,
Niranjan