Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Help Point for Split in FeatureScript?
jelte_steur814
Member Posts: 232 PRO
Hi,
I'm working on an alternative split body feature that first creates a copy of the part and splits both of those so attributes/properties and ID's are more stable in referencing their part (original or new).
This is relevant for 'keep both sides' splits. I've often had a upstream feature of the split tool change direction and therefore the split parts changing identity. then there's no way of repairing that easily.
in the split curve feature, there's a neat 'Help point' that can be used to indicate what side of the split tool is meant to be used. this makes it even less stable to upstream changes in the split tool definition.
However that HelpPoint is fed into 'opMoveCurveBoundary.fs' so i cannot see how it's working. 'opSplitPart' doesn't allow this argument. Is there a way to create such a HelpPoint? I guess more specifically: how to evaluate the position of a HelpPoint with respect to a split tool?
Here's the first version without Help Point. can be repaired by reversing direction if it flips.
https://cad.onshape.com/documents/225c3300bd62e1b7109036b8/w/4fbbd3883225f886a9f4364e/e/3f15cf9428943ce74bd290ae?renderMode=0&uiState=65faba6cea6d9168aeab9c8c
I'm working on an alternative split body feature that first creates a copy of the part and splits both of those so attributes/properties and ID's are more stable in referencing their part (original or new).
This is relevant for 'keep both sides' splits. I've often had a upstream feature of the split tool change direction and therefore the split parts changing identity. then there's no way of repairing that easily.
in the split curve feature, there's a neat 'Help point' that can be used to indicate what side of the split tool is meant to be used. this makes it even less stable to upstream changes in the split tool definition.
However that HelpPoint is fed into 'opMoveCurveBoundary.fs' so i cannot see how it's working. 'opSplitPart' doesn't allow this argument. Is there a way to create such a HelpPoint? I guess more specifically: how to evaluate the position of a HelpPoint with respect to a split tool?
Here's the first version without Help Point. can be repaired by reversing direction if it flips.
https://cad.onshape.com/documents/225c3300bd62e1b7109036b8/w/4fbbd3883225f886a9f4364e/e/3f15cf9428943ce74bd290ae?renderMode=0&uiState=65faba6cea6d9168aeab9c8c
Tagged:
0
Comments
* Reverses the orientation of sheet bodies.
* @param id : @autocomplete `id + "flipOrientation"`
* @param definition {{
* @field bodies {Query} : Sheet bodies whose orientation should be flipped.
* }}
*/
export const opFlipOrientation = function(context is Context, id is Id, definition is map)
{
return @opFlipOrientation(context, id, definition);
};
In the past I saw something where someone mentioned using some dummy parts early in their feature tree that would carry the ID. I think the idea was you make a simple block, give it a name, etc, and then Boolean add to it at the end to give the intended ID to whatever body. I can't find the post right now, but there really needs to be a better way where by IDs are managed. I spend far too much time renaming parts in part studios, and then replacing parts in assemblies, and fixing mates in assemblies. It feels like there should be a more direct way of keeping a list of the intended parts list for a part studio, and then I'm ok manually saying that this meta data from this table is connected to this body in the studio, but I don't want to manually retype names, etc....
that would help and be cleaner than of flipping the front/back of the splits.
but how would one go about whether the reference point is on the positive side of the tool?