How to Programmatically Import Image? Using skImage(...)?

brian_guan
brian_guan Member Posts: 13 ✭✭
I am trying to use FeatureScript to programmatically import a logo image into my model but I can't seem to find any example.

Doing so manually in Part Studio by importing the logo in DXF and inspecting the underlying FeatureScript code, it seems to be essentially re-sketching the logo line by line, arc by arc, instead of dealing with the logo image as a logical unit.

Browsing FeatureScript documentation I found https://cad.onshape.com/FsDoc/library.html#module-sketch.fs which mentions skImage(...) but it is unclear to me what the parameter "blobInfo" is supposed to take, and I can't find any example of it. I was able to make skText(...) work as comparison.


I wrote a little FeatureScript code to illustrate my point:

https://cad.onshape.com/documents/2b537144499e9a65a1f29a21/w/25385a13a699a6857a41ecf9/e/62ce786523dc5d93219530c6

Can someone from OnShape comment?  Thanks.

Comments