Select a sketch from another studio?
MichaelPascoe
Member Posts: 2,962 PRO
I'm trying to select a sketch from another studio. I can get close, but I'm missing a few steps. What is a good way to do this?
https://cad.onshape.com/documents/76442daf92ce43df74883ec6/w/2f4ea4d52c5fb26051e11c55/e/cdac35e0ee54c70d46280df1
Also, if there is a way to select a mate connector from another studio, that would be helpful too.
Here is the precondition:
debug: PartStudioData : { "buildFunction" : <function 12> , "configuration" : {} , "partQuery" : Query : { "queryType" : QueryType : "UNION" , "subqueries" : [ Query : { "entityType" : EntityType : "BODY" , "featureId" : Id : [ "FzKsf89ZtRsirEg_0" ] , "queryType" : QueryType : "CREATED_BY" } ] } }
https://cad.onshape.com/documents/76442daf92ce43df74883ec6/w/2f4ea4d52c5fb26051e11c55/e/cdac35e0ee54c70d46280df1
Also, if there is a way to select a mate connector from another studio, that would be helpful too.
Here is the precondition:
annotation { "Name" : "Profile to sweep" }
definition.otherStudioProfile is PartStudioData; When I debug the selection here are the results:debug: PartStudioData : { "buildFunction" : <function 12> , "configuration" : {} , "partQuery" : Query : { "queryType" : QueryType : "UNION" , "subqueries" : [ Query : { "entityType" : EntityType : "BODY" , "featureId" : Id : [ "FzKsf89ZtRsirEg_0" ] , "queryType" : QueryType : "CREATED_BY" } ] } }
▚▞▚▞▚▞▚▞▚
0
Best Answer
-
Instantiator can take PartStudioData as an argument directly. You can also optionally filter the partQuery to remove unnecessary information, if you wish - for more information, see this part of the documentation. There isn't any way to bring in mate connectors directly, but you can bring them in by importing the body they're attached to. You could also try doing shenanigans with evBox3d to determine the center of imported profiles and orient things appropriately that way too.Software Developer at Epic Systems
FRC Design Mentor - Team 1306 BadgerBots0
Answers
-
Instantiator can take PartStudioData as an argument directly. You can also optionally filter the partQuery to remove unnecessary information, if you wish - for more information, see this part of the documentation. There isn't any way to bring in mate connectors directly, but you can bring them in by importing the body they're attached to. You could also try doing shenanigans with evBox3d to determine the center of imported profiles and orient things appropriately that way too.Software Developer at Epic Systems
FRC Design Mentor - Team 1306 BadgerBots0 -
-
@Alex_Kempen, I referenced you in my Pattern & sweep feature on the instructions tab:
https://forum.onshape.com/discussion/15560/pattern-sweep-new-custom-feature#latest
▚▞▚▞▚▞▚▞▚0
