Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I want to use negative integers in input as my coordinates of datum points are negative as well as positive. Is it possible to enter negative integer using Pro/Program.
Solved! Go to Solution.
The values are getting updated when I check the displayed values remain positive and stored value changes to negative, which is my input.
Yes, you can enter a negative integer value in a Pro/Program input.
Can you please suggest me how to do so as I tries entering $ sign in relation part of Pro program but it did not work as when I enter negative integers geometry is not updated.
Do you have a test case that you can post here? It must be in Creo 7 or earlier for me to open it. Educational license models I will not be able to open either.
INPUT
H Number
"Enter the horizontal distance of datum point"
END INPUT
RELATIONS
D26 = $H
END RELATIONS
This is the general syntax I am trying to implement to check if on entering negative number in H to change x coordinate of datum point with dimension notation of d26. This does not change the coordinate value. What is mistake in this?
Thanks in Advance.
Hi,
try this
$D26 = H
The values are getting updated when I check the displayed values remain positive and stored value changes to negative, which is my input.
@SS4598 wrote:
The values are getting updated when I check the displayed values remain positive and stored value changes to negative, which is my input.
Hi,
did you set show_dim_sign yes in your config.pro ?
Please attach pictures describing your situation.
Hi,
I attached part created in Creo 7.0.5.0.
show_dim_sign yes is not necessary setting in case of point offset from coordinate system.
Also replay ProProgram.mp4.
@SS4598 wrote:
I want to use negative integers in input as my coordinates of datum points are negative as well as positive. Is it possible to enter negative integer using Pro/Program.
Hi,
please read https://support.ptc.com/help/creo/creo_pma/r10.0/usascii/index.html#page/part_modeling/part_modeling/About_Editing_Dimensions.html help page. Maybe show_dim_sign yes config.pro option will resolve your problem.
Hi,
what Creo version do you use?