Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text string |
|---|
FeatureScript 1560; |
import(path : "onshape/std/geometry.fs", version : "1560.0"); |
import(path : "onshape/std/common.fs", version : "1560.0"); |
const mm = millimeter; |
const VERTEX = EntityType.VERTEX; |
const EDGE = EntityType.EDGE; |
const FACE = EntityType.FACE; |
const BODY = EntityType.BODY; |
function v(x, y){return vector(x, y);} |
function OD(order){return orderDisambiguation(order);} |
function OSD(set){return originalSetDisambiguation(set);} |
function TD(topology){return topologyDisambiguation(topology);} |
function TDD(query){return trueDependencyDisambiguation(query);} |
function sQuery(a, b, c) {return sketchEntityQuery(a, b, c);} |
annotation { "Feature Type Name" : "Feature", "Feature Type Description" : "" } |
export const myFeature = defineFeature(function(context is Context, id is Id, definition is map) |
precondition{} |
{ |
{ |
var Q0; |
Q0=qCreatedBy(makeId("Top.planeOp"),FACE); |
var sketch = newSketch(context, id + "F0", { "sketchPlane" : qUnion([Q0])}); |
skCircle(sketch, "E0", {"center": v(0, 0) * mm, "radius": 10.75 * mm}); |
skCircle(sketch, "E1", {"center": v(0, 32.5) * mm, "radius": 10.75 * mm}); |
skCircle(sketch, "E2.1.0", {"center": v(-28.15, -16.25) * mm, "radius": 10.75 * mm}); |
skCircle(sketch, "E2.2.0", {"center": v(28.15, -16.25) * mm, "radius": 10.75 * mm}); |
skLineSegment(sketch, "E3", {"start": v(0, 0) * mm, "end": v(-19.49, 11.25) * mm, "construction": true}); |
skLineSegment(sketch, "E4", {"start": v(-19.49, 11.25) * mm, "end": v(-45.76, 26.42) * mm, "construction": true}); |
skCircle(sketch, "E5", {"center": v(0, 0) * mm, "radius": 32.5 * mm}); |
skCircle(sketch, "E6", {"center": v(-28.15, 16.25) * mm, "radius": 11 * mm}); |
skCircle(sketch, "E7.0", {"center": v(0, 32.5) * mm, "radius": 14.75 * mm}); |
skCircle(sketch, "E8.1.0", {"center": v(-28.15, -16.25) * mm, "radius": 14.75 * mm}); |
skCircle(sketch, "E8.2.0", {"center": v(28.15, -16.25) * mm, "radius": 14.75 * mm}); |
skCircle(sketch, "E9.1.0", {"center": v(0, -32.5) * mm, "radius": 11 * mm}); |
skCircle(sketch, "E9.2.0", {"center": v(28.15, 16.25) * mm, "radius": 11 * mm}); |
skCircle(sketch, "E10.0", {"center": v(-28.15, 16.25) * mm, "radius": 15.3 * mm}); |
skCircle(sketch, "E11.1.0", {"center": v(0, -32.5) * mm, "radius": 15.3 * mm}); |
skCircle(sketch, "E11.2.0", {"center": v(28.15, 16.25) * mm, "radius": 15.3 * mm}); |
skSolve(sketch); |
} |
{ |
var Q0; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E1");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q0=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","IMPRI... |
var Q1; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E1");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q1=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","IMPRI... |
var Q2; |
Q2=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","IMPRINT",EDGE,{"derivedFrom":sQuery(id+"F0.wireOp",EDGE,"E0")}),-1.0]])]}); |
var Q3; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E2.1.0");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q3=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","I... |
var Q4; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E2.1.0");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q4=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","I... |
var Q5; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E2.2.0");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q5=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","I... |
var Q6; |
{var subQ0=sQuery(id+"F0.wireOp",EDGE,"E5");var subQ1=sQuery(id+"F0.wireOp",EDGE,"E2.2.0");var subQ2=makeQuery(id+"F0.imprint","INTERSECT",VERTEX,{"disambiguationData":[OD(0.0)],"derivedFrom":[subQ1,subQ0]});Q6=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","I... |
extrude(context, id + "F1", {"entities" : qUnion([Q0, Q1, Q2, Q3, Q4, Q5, Q6]), "depth" : 7.2 * mm, "offsetDistance" : 25 * mm}); |
} |
}); |
FeatureScript 1511; |
import(path : "onshape/std/geometry.fs", version : "1511.0"); |
import(path : "onshape/std/common.fs", version : "1511.0"); |
const mm = millimeter; |
const VERTEX = EntityType.VERTEX; |
const EDGE = EntityType.EDGE; |
const FACE = EntityType.FACE; |
const BODY = EntityType.BODY; |
function v(x, y){return vector(x, y);} |
function OD(order){return orderDisambiguation(order);} |
function OSD(set){return originalSetDisambiguation(set);} |
function TD(topology){return topologyDisambiguation(topology);} |
function TDD(query){return trueDependencyDisambiguation(query);} |
function sQuery(a, b, c) {return sketchEntityQuery(a, b, c);} |
annotation { "Feature Type Name" : "Feature", "Feature Type Description" : "" } |
export const myFeature = defineFeature(function(context is Context, id is Id, definition is map) |
precondition{} |
{ |
{ |
var Q0; |
Q0=qCreatedBy(makeId("Front.planeOp"),FACE); |
var sketch = newSketch(context, id + "F0", { "sketchPlane" : qUnion([Q0])}); |
skLineSegment(sketch, "E0.bottom", {"start": v(-49.83, 25.04) * mm, "end": v(0.97, 25.04) * mm}); |
skLineSegment(sketch, "E0.top", {"start": v(-49.83, -51.16) * mm, "end": v(0.97, -51.16) * mm}); |
skLineSegment(sketch, "E0.left", {"start": v(-49.83, 25.04) * mm, "end": v(-49.83, -51.16) * mm}); |
skLineSegment(sketch, "E0.right", {"start": v(0.97, 25.04) * mm, "end": v(0.97, -51.16) * mm}); |
skSolve(sketch); |
} |
{ |
var Q0; |
Q0=makeQuery(id+"F0.imprint","IMPRINT",FACE,{"disambiguationData":[TD([[makeQuery(id+"F0.imprint","IMPRINT",EDGE,{"derivedFrom":sQuery(id+"F0.wireOp",EDGE,"E0.bottom")}),-1.0]])]}); |
extrude(context, id + "F1", {"entities" : qUnion([Q0]), "depth" : 12.7 * mm}); |
} |
{ |
var Q0; |
Q0=qCreatedBy(makeId("Front.planeOp"),FACE); |
var sketch = newSketch(context, id + "F2", { "sketchPlane" : qUnion([Q0])}); |
skLineSegment(sketch, "E1.bottom", {"start": v(-49.83, 25.04) * mm, "end": v(-44.75, 25.04) * mm}); |
skLineSegment(sketch, "E1.top", {"start": v(-49.83, -51.16) * mm, "end": v(-44.75, -51.16) * mm}); |
skLineSegment(sketch, "E1.left", {"start": v(-49.83, 25.04) * mm, "end": v(-49.83, -51.16) * mm}); |
End of preview.
No dataset card yet
- Downloads last month
- 24