USER FORUM
(you are viewing a thread; or go back to list of threads)
What are "group requests" (by Marcin)
It is mentioned in the Group documentation that "The group's page in the text window also includes a list of all requests, and of all constraints. To identify a constraint or a request, hover the mouse over its name"
But I couldn't find any information about "requests" in groups. Could you elaborate on what are these and update the documentation?
But I couldn't find any information about "requests" in groups. Could you elaborate on what are these and update the documentation?
(no subject) (by Paul)
From the source code:
"Implementation of our Request class; a request is a user-created thing that will generate an entity (line, curve) when the sketch is generated, in the same way that other entities are generated automatically, like by an extrude or a step and repeat."
If I'm not mistaken, the entire sketch can be created purely from "requests". They are essentially user requests to create a thing. Like the code comment says, some things are created when you perform an extrusion or revolve. I'm not sure if "extrude" itself is a request - it creates a new group.
I have not looked at how "undo/redo" is implemented, but it is not very invasive and doesn't store a lot of information. I think it mostly works on the lists of requests.
I'm not a CS major and haven't studied all the design patterns, but I think this is closely related to the "Command Pattern":
https://en.wikipedia.org/wiki/Command_pattern
"Implementation of our Request class; a request is a user-created thing that will generate an entity (line, curve) when the sketch is generated, in the same way that other entities are generated automatically, like by an extrude or a step and repeat."
If I'm not mistaken, the entire sketch can be created purely from "requests". They are essentially user requests to create a thing. Like the code comment says, some things are created when you perform an extrusion or revolve. I'm not sure if "extrude" itself is a request - it creates a new group.
I have not looked at how "undo/redo" is implemented, but it is not very invasive and doesn't store a lot of information. I think it mostly works on the lists of requests.
I'm not a CS major and haven't studied all the design patterns, but I think this is closely related to the "Command Pattern":
https://en.wikipedia.org/wiki/Command_pattern
Re: What are "group requests" (by Marcin)
Interesting. Thanks for the answer.
Post a reply to this comment: