skText
Discussion List
-
Transforming sketch causes inner loops not to be selected when extruding
Hi There I'm new to featurescript and was experimenting with placing text in a sketch. I was specifically trying to extrude text but couldn't get the inner loops to extrude, eventually I found the issue was caused when the sketch had been transformed. I've created a very short function below to show the issue where the…
-
New FeatureScript predicate: Fontpicker
I have published Fontpicker R1. You can find it here: https://cad.onshape.com/documents/0fef4e86805ae7e232be4d16/v/1decb6f4e1ef91711d5892a6/e/4522968d16630da6fe5ce8b8 Please note: This document doesn't define a feature itself. Rather, it defines a predicate to be incorporated in to your FeatureScript preconditions. This…
-
Having trouble with opExtrude on skText
Hello, I am trying to make 3D text via a Feature script, but having trouble with the "holes" being filled upon opExtrude. How do I get ride of the extra material? Thanks Section of Code:<div>opPlane(context, id + "plane1", {</div><div> "plane" : plane(planeOrigin, planeNormal)</div><div> });</div><div> </div><div> var…
-
"DroidSansMono-Regular.ttf" not working in skText
Hey all, Any reason "DroidSansMono-Regular.ttf" isn't working when using skText? Need a monospace font and that's the only one. Thanks in advance!
-
opBoolean.SUBTRACTION not working?
Hello! I am trying to create a quick feature script to engrave a text onto an existing object. This is the code I am using: annotation { "Feature Type Name" : "Tag" }export const Tag = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Location and Orientation",…
-
Help rotating text in FeatureScript
Perhaps I'm on the wrong path, or not... Ive created a featurescript to make an array of holes. I want to add labels (text) to the holes but I cant seem to figure the best way to rotate the text so it is aligned to the holes. The following FS is my work in progress:…
-
How do I scale skText in-situ from featurescript?
Having read all the previous answers to this question and tried various combinations I still cannot work how to scale skText in-situ. The roman numeral clock example was too complex for me to adapt and the other simpler methods do not work for me. I want to write a function I can call from other FS code to place a small…
-
skText too big, how can I define its origin and sizes on sketch?
Think the title says it all, I want to place the text in a certain position (above my aerofoils) also, changing skText to construction doesn't seem to do anything? Kind regards, Darren