I recreated my data from scratch and I think I've stumbled on the reason we're seeing different behaviours.
I've attached a new packngo of my fresh dataset that exhibits the problem.
To recap ..
I create part1 ... a simple cylindrical part, a revolve of a sketch.
Create part2 as a derived part from part1.
In part2 on an end face of the cylinder sketch some shapes and dimension them. Extrude the shapes to cut through the cylinder (or add material it makes no difference)
Create an assembly1 and add part2
Create a drawing of assembly1 and create a view on the end face of the cylinder.
Retrieve dimensions on this view.
Note that only some dimensions will retrieve.
The key part seems to be how the dimensions are created in the sketch that is used in the extrude in part2.
Scenarios:
1. Dimension is created by , single click on line and then place dimension - dimension WILL retrieve.
2. Dimension is created by click on line , click on another line, place dimension - this dimension will NOT retrieve.
3. dimension is created by click on point, click another point , place dimension - dimension WILL retrieve.
4. dimension is created by a click on arc or circle, then place dimension - this dimension will NOT retrieve.
other dimensions I've tested but not shown in packngo ..
5. angular dimension created by clicking 2 lines and place - will NOT retrieve.
6. angular dimension created by picking 3 points and place - WILL retrieve.
In the attached ZIP is a screen capture of the sketch with dimensions, the dimensions I've highlighted with yellow were created with 2 line clicks (or 1 in the case of the diameter) these will not retrieve. The other dimensions were created with either 2 point clicks or a single line click and these will retrieve.
Of course the reason I've been struggling with this is that I always place dimensions between lines (scenario 2) , always thought this was more robust and best practice.
Mike