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.
How can I use profiles that are not user defined in the loft feature?
darren_13
Member, Developers Posts: 119 PRO
I created two profiles in my feature script and now I want these to be used in the loft feature, is there a way of using them? like profile is from sketch 1 at point (x,y)? or maybe someone could just direct me to a script that demos this if its easier?
Kind regards,
Darren Lynch
Kind regards,
Darren Lynch
Tagged:
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,686The input needs to be a query so use qCreatedBy(id + "sketch1") and sketch2 in your arraySenior Director, Technical Services, EMEAI5
Answers
opLoft(context, id + "loft1", {
"profileSubqueries" : SketchStore
});
I get, expect map found sketch? I have solved sketches 1 and 2 am I inputting the array correctly or does it need to be in a certain format?
Cheers, Darren
At least in my implementation, the above approach didn't quite work. I needed to add an entity type:
var SketchStore = [qCreatedBy(id + "sketch1", EntityType.FACE), qCreatedBy(id + "sketch2", EntityType.FACE)];