Dimension problem

Hello everybody,
I am trying to add a dimension to a ply. The problem I have is that the dimension are not in the same direction. I am using AddAlignedDimension and if i add a positive number the dimension goes wrong. is there another way to add the dimension on the same direction?

Thanks in advance

image

Hi @jose.verdu,

Can you upload the Python code that is not working for you (so we can run it here)?

Thanks,

– Dale

dimension problem.3dm (38.0 KB)
Dimensioning.py (2.1 KB)

I have modified the code to make it more understandable. What makes the code is to check all the points from the ply and choose the corners to add dimension to the plies. I want them to be inside of the ply like in the photo but in the same direction as the white dimension.

thanks for your time.

hi Dale,
Have you been able to see the problem?
Thanks,

José Verdú

Hi @jose.verdu,

Your scripts seems to be working here using Rhino 6 SR 30:

What am I missing?

– Dale

Hello Dale,
I have download the lastest version and it works fine.
Thank you very much.

José Verdú

Hello Dale,
I am sorry to bother you again with this problem. But the problem was not the version of rhino. In that moment i didn’t notice but the script was working for you because you have the orientation of the text click. The problem is that I can’t use that because i need to know the orientation of the text.

Thank you very much for your time

José Verdú Cano

just in case someone has the same problem as i. what i have done to solve is to use in line 64 rs.Command(’_-Dim {} {} {}’.format(p_1,p_2,p_3)) and works fine.