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.
Can i use script of created part for making custom feature script?
gediminas_zdanys
Member Posts: 2 ✭
Best Answer
-
billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PROrmb (right mouse button) on the part studio then click on show code:
gediminas_zdanys I might recommend a starting point to featurescript:
The documentation has no fluff and every sentence has to be considered carefully. It's all in there and some of us have to read it many times to understand, especially me.
We're all beginning, so please post questions and when you figure something out, please share.
5
Answers
gediminas_zdanys I might recommend a starting point to featurescript:
The documentation has no fluff and every sentence has to be considered carefully. It's all in there and some of us have to read it many times to understand, especially me.
We're all beginning, so please post questions and when you figure something out, please share.
I haven't ruled it out yet, but on the surface it doesn't seem like an easy way to build a custom feature script. Let me know if you figure something out.
But what about the feature tree?
If we just copy wrap of build function (from Part Studio code) in our custom function and call it like a custom feature, we just have single feature in the tree.
I would pleasure to know how we can constructed part that consist of our custom features (and we can see them into feature tree).
Did you do something like that?
Or, you can expose a few parameters and create a super feature.
Each feature script produces one line item in the tree.
You should be able to select and copy from the view-only code, you just can't modify it.
If you can't, that's a bug. What OS/browser are you using?