Using a history stack in CascadeStudio #137
raydeleu
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a small part to repair the interior lighting of an old FIAT Panda. The part is not very interesting, but I experimented with encapsulating every modeling step into a function. This allows to use a kind of history stack at the bottom of the code. Just like the modeling history in many CAD programs you can go through each step backwards by putting comment marks in front of each step. In the CascadeStudio editor you can achieve this by selecting the lines you want to be marked as a comment and pressing [CTRL] +[/].
Here is the same shape create in OnShape. At the left you can see the feature list or rollback bar that is almost identical to the model stack in the CascadeStudio code.
I think that the concept of this modeling stack is very practical, in particular if you happen to change the model in such a way that the numbering of edges or faces changes. In that case you have to adjust the parts that reference these edges or faces. Using the modeling stack it is relatively easy to go back to a certain state of the model and determine the correct numbers.
An issue that I still need to solve is the creation of sketches. Currently I do this using a paper notebook or using a tool like SolveSpace. After creating the sketch in SolveSpace I export the sketch to an image, number the points/vertices around the contour of the sketch and then determine the values or equations (relationships between dimensions) for each point. The benefit of the modeling stack is that it is easy to go back to the creation of just that sketch in CascadeStudio and determine the effects of changing dimensions.
Beta Was this translation helpful? Give feedback.
All reactions