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.
Named Surfaces
I need a way to name surfaces or use the surface metadata ID to share with an external CFD application when exporting parasolid models. Is this possible?
Tagged:
0
Answers
Yes. You can do this with FeatureScript:
See this example: Setting & getting face property
In case you ever need something similar, setAttribute() works very well. Though it is only for Onshape to Onshape, it will not stay with the part during export.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎
Definitely. See the import tab, it shows that the face that was named in the original tab, stayed with the parasolid part even after download and re-upload.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎
I'm working on a FS that sets up a number of planes (as well as moves some solid bodies around) to act as trimming geometry further down the model tree. The number of planes created depends on user input, though each plane should have a unique name that is assigned in the FS. In other words, if the user selections lead logic to create a given plane, it should always be called 'Special Name Plane'.
I'm creating the planes with opPlane calls and setting the name with setProperty calls:
however, the planes that show up in the feature tree are simply called 'Plane #'. Basically - the setProperty call does not seem to be working.
What am I missing here?
Thanks!
@Jed_Yeiser, SetAttribute() may be of use to you. Then you could check all previous planes for their "names" via attributes, then create your new one based on the previous "names".
https://cad.onshape.com/documents/bdc2ba2f0442948f980c2dbd/w/b8075d373e20aaa5f1c34512/e/6f7a8...
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎
I suspect that as I become more familiar with OS and FS, I'll get to the point where I find a better way to accomplish what I want - until then, it's off to the docs. Thanks!
@Jed_Yeiser legit. Feel free to post on the forums, lots of helpful people here. It's where I learned FS. There are some really neat things you can do using FS and or the API, the possibilities are almost endless depending on your knowledge and time you are willing to spend setting up.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎