Skip to main content
3-Newcomer
January 21, 2025
Solved

IF programming statement, Solve Blocks and Formatting

  • January 21, 2025
  • 2 replies
  • 687 views

Hi!

 

I have a twosome question, as I am in doubt if there a better or more straightforward solutions as what I have done currently:

  1. A PTC document where I have a mechanic exercise to calculate reaction forces ("StaticExercise"). I would like to know how to format functions, like an area which overlaps pages. This makes in inconvenient. As well, I am very interested how equilibrium formulas can be formatted and solved.
  2. In another exercise ("SteelRodElongation_Exersise"), I have applied an IF function, because I would like that the calculation breaks or stops, so it ends up with 0. Now the calculation gives some strange units at the outcome, at Delta L (if you change σ0.2 to 1 manually. What would you advise?

 

I have formatted the questions/notes in red in the files.

 

Like to hear your thoughts!

PTC Version is: 9.0.0.0.

 

Thanks a lot

Best answer by Werner_E

As for your question 1), see my remarks in the attached Prime 9 sheet.

In short - there is no solution other than manually re-format the sheet. Deleting unused space, using smaller font size, splitting in more areas, ...

We have a very similar but more serious problem with long programmes that go over a page or with result expressions that are so long that they go over the page to the right.
Unfortunately, there is no automatic satisfactory solution for this either.

 

As for your question 2), simply apply an appropriate unit and don't use just a dimensionless zero

Werner_E_0-1737468239407.png

 

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
January 21, 2025

As for your question 1), see my remarks in the attached Prime 9 sheet.

In short - there is no solution other than manually re-format the sheet. Deleting unused space, using smaller font size, splitting in more areas, ...

We have a very similar but more serious problem with long programmes that go over a page or with result expressions that are so long that they go over the page to the right.
Unfortunately, there is no automatic satisfactory solution for this either.

 

As for your question 2), simply apply an appropriate unit and don't use just a dimensionless zero

Werner_E_0-1737468239407.png

 

Catalina
Community Moderator
January 28, 2025

Hi @LV_12779641,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.

Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,

Catalina | PTC Community Moderator