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.
FeatureScript and Assemblies?
mbattistello
Member, Developers Posts: 51 ✭✭
Im trying to use FeatureScript to replicate an automated process I have built in Proe using trail file. Id like move the core build process from Proe into OnShape. The Proe trail is building a PCB from an intermediate text file (IDF) that describes the board outline, slots, and holes and also includes the components and placements. The build process includes generating the board, basic sketch that is extruded, and then pulling in component modules based on the components and placements.
Im able to generate the board using FeatureScript but stuck on how to handle building the assembly. FeatureScript seems to be limited to building parts in the parts studio. I dont even see an option to view code in an assembly tab.
I have done some work where I import the STEP file exported out of Proe and I can see that OnShape brings the full assembly STEP file into a parts studio. It does this using an importForeign() with reference to the imported STEP file. I am wondering if the solution is to do something like this? I would build the board using FeatureScript and then import the individual components and place them using the importForeign() function?
Im able to generate the board using FeatureScript but stuck on how to handle building the assembly. FeatureScript seems to be limited to building parts in the parts studio. I dont even see an option to view code in an assembly tab.
I have done some work where I import the STEP file exported out of Proe and I can see that OnShape brings the full assembly STEP file into a parts studio. It does this using an importForeign() with reference to the imported STEP file. I am wondering if the solution is to do something like this? I would build the board using FeatureScript and then import the individual components and place them using the importForeign() function?
Tagged:
0
Comments
You're also correct that you can still work with multiple parts within a Part Studio. If those components are defined in other Part Studios, you can use some of the importing workflows defined here, which function similarly to "derive part".
One day, we hope to be able to add behaviors where FeatureScript can specify attributes on geometry that tell an assembly what it's intended to be mated to (e.g. What kind of components can/should go in a certain hole or set of holes). This would be useful in standard Onshape features and custom features alike.
For now, keeping all the automation in FeatureScript inside of one Part Studio looks like the best path forward for you.
Twitter: @onshapetricks & @babart1977
Although our API is not yet public, once live you will have be ability to patch together much more powerful, full workflow solutions. FeatureScript will be a link of the chain. You can get a sense of this power with the number of things being done by our partners today. ~Lou