Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

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

brian_guanbrian_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

Sign In or Register to comment.