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.
Editing parts generated by featurescript
paul_berry
Member Posts: 7 ✭✭
I have a spline curve that is generated by the CSV spline feature. Works fine except that I cannot edit the curve except by changing the CSV file. There is no sketch associated and none of the spline points appear when edit is selected. I can made a plane that is coincident and open a sketch on the plane, but the spline is not part of the new sketch. Once the spline is generated, can I dissociate it from the script and edit it?
Tagged:
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,688Hi @paul_berry - glad you're using the script
FeatureScript builds individual features, so the spline is created from the CSV file which creates a curve as a feature. That means that the curve can only be edited by modifying the feature, which can only be modified by changing the CSV file. Hope that makes sense.
If you can let me know what you are trying to achieve I may be able to come up with a solution, but if you want to create a spline from a CSV file as a starting point then modify it manually then that cannot be done using FeatureScript.
Senior Director, Technical Services, EMEAI5
Answers
FeatureScript builds individual features, so the spline is created from the CSV file which creates a curve as a feature. That means that the curve can only be edited by modifying the feature, which can only be modified by changing the CSV file. Hope that makes sense.
If you can let me know what you are trying to achieve I may be able to come up with a solution, but if you want to create a spline from a CSV file as a starting point then modify it manually then that cannot be done using FeatureScript.
It turns out that the geometry of the curve has only a very few variants based just on the number of members that are used for the structure. The size of the structure is not relevant. So I would like to build a few different curves, then be able to scale or constrain as needed using only the endpoints. As it is, I have to generate the points for each case. It's a slow process and difficult to space the endpoints exactly to fit other features.
Also, I can place some spline points at structurally significant attachment points, so once added to the assembly, I can use them to constrain to. As it is, I only have endpoints, so have to recreate any other points.
While I have you here, a couple of other questions....
Thanks,
Paul
If you link in a FS feature using the plus button top right then it is linked to a particular version of the feature which will point to a particular CSV file.
The current method for referencing different input data is not ideal since it needs to be hard coded in the script. So to do multiple different splines in one document would require multiple copies of the script on your document. We could alter the script to read one CSV file that has all the splines in it. We would just need to put a line in the CSV file to delineate each spline. Let me know if I understood the issue correctly and I can edit the script to make this happen.
What was the doc called? Can't seem to find it unless I made you owner?
I'll stick with the script as it is now for the time being. By the time I really need more versions, I hope to be able to edit the script myself.
Was this a design choice, or a limitation?
"FeatureScript builds individual features, so the spline is created from the CSV file which creates a curve as a feature. That means that the curve can only be edited by modifying the feature, which can only be modified by changing the CSV file. Hope that makes sense."
It would be useful to be able to generate points in another application (Excel) to create a feature, but still be able to have access to all of the points and to manipulate the FS feature as any other feature in the document.