Autodesk / civilconnection

CivilConnection enables the exchange of information between Civil 3D, Dynamo and Revit.
94 stars 43 forks source link

Featureline.PointAtStation elevation values #20

Closed Lazarica-t closed 4 years ago

Lazarica-t commented 4 years ago

Hi,

There seams to be a loss in precision for the Z values of the featureline points when the input station has a precision greater the 0.1 digits. This loss in precison is only present if the station is close to a PVI point.

As an example, what I've encountered, for a corridor at the station 166.25 I am getting in Civil 3D an elevation of 2.641m for the baseline and the featureline (the mark point for the featureline just having a 3m offset from the baseline, so the elevations should always be the same for both of them). When I read the elevations at the same station in Dynamo I get a small difference of a few milliliters.

Normally I would just ignore this small loss in precision but in my case it does effect the model I'm trying to create in Revit.

Not sure if anything can be done to improve or fix this, but other users might want to be aware of this of this.

Best regards! Bellow are some screens to show the issue, in which I sample the point values at stations 166, 166.2 and 166.25. image image

paoloemilioserra commented 4 years ago

@Lazarica-t can you try again but with one station value at the time? I noticed you have different lacing set for the nodes. I assume you know what you are doing but just in case. Also the Log file please.

There is no guarantee that the elevation from the Baseline is the same on the one on the Featureline as in principle they can have different grading, so your assumption is wrong.

Lazarica-t commented 4 years ago

Sure, no problem. Log file: CivilConnection_temp.log

Well that doesn't sound to reassuring , since I specifically set the link between the Baseline point and the featureline mark point to have 0% slope (in Civil 3D in the Assembly properties). Weird.

The values are the same as above. image image image

paoloemilioserra commented 4 years ago

@Lazarica-t what I mean is that Featureline can be independent from the Baseline for what concerns Offset AND Elevation, it's a matter of understanding what you are asking not reassuring.

paoloemilioserra commented 4 years ago

@Lazarica-t extract the polycurve of the Featureline with code "P2", calculate the coordinate system on the baseline at the station you want, extract the ZXPlane, intersect the plane with the polycurve, extract the Z coordinate of the intersection point, if they are still different it means the polycurve in not horizontal in that point.

Double check with the coordinate system form the Alignment.

Lazarica-t commented 4 years ago

@paoloemilioserra That is the log for station 166.25

Here is the log after a fresh run for station 166.25 CivilConnection_temp.log

image

If you are referring to the value found inside the log 148.45 I believe that is a station used for another node in my dynamo script Corridor.GetFeaturelinesByCodeStation. image

Here is the script so you can understand better: 00_Ref Po_TUN_adf_v2.zip

Lazarica-t commented 4 years ago

@Lazarica-t extract the polycurve of the Featureline with code "P2", calculate the coordinate system on the baseline at the station you want, extract the ZXPlane, intersect the plane with the polycurve, extract the Z coordinate of the intersection point, if they are still different it means the polycurve in not horizontal in that point.

Double check with the coordinate system form the Alignment.

I will check now and come back with the results.

Lazarica-t commented 4 years ago

@paoloemilioserra No luck, same values after the intersection with the ZXPlane Coord system from the Alignment has the same values for X,Y coordinates and vectors as the ones from the Baseline

Thanks for you support, much appreciated.

image