Hi,
I am trying to do an opTransform of type copy, but I am getting an error I don't understand. It seems like the error is saying that
TransformType.COPY is a String and should not be a String, but it doesn't look like a string to me. Could someone tell me what I am doing wrong here?
Thanks,
Jason
This is my code:
<div> opTransform(context, id + "transform1", {</div><div> "transform" : TransformType.COPY,</div><div> "entities" : definition.part,</div><div> "makeCopy" : true</div><div> </div><div> });<br></div>
This is the error:
@opTransform: Map field 'transform' is of wrong type STRING 560:12 onshape/std/geomOperations.fs (opTransform) 62:13 Feature Studio 1 (const corePrint)
52:17 onshape/std/feature.fs (defineFeature) 91:17 Part Studio 1 (build) 94:9 Part Studio 1 (build) 7:12 Part Studio 1 (main) |
|
|
|
|
Comments
I am looking all over the forum to find a good complete example with opPattern, I can not understand how to use it, I am trying to choose an object and then pattern in a list of vectors in the 3D space (not only a direction more like a "cloud" of points). From the feedback and answers from questions, I saw that opPattern would be a good idea.... but from the standard documentation (https://cad.onshape.com/FsDoc/library.html#opPattern-Context-Id-map) I can not get how to use it.
you guys are super helpful each time I am looking for help to do something you help me, but I would really like to look in the documentation to don't fill up the forum with my issues (and be a little bit independent ahahaha) is something I am missing!? like a formation or something?
thanks either way.
This is wat worked for me:
good luck!