Python API to Inserting SVG file into new design

balunist
Advocate
Advocate

Python API to Inserting SVG file into new design

balunist
Advocate
Advocate

my goal

 

pre-condition: Start with an existing design named mydesign open 

result: a new design is created named mydesign_svg, an existing svg file is inserted into a sketch, and the focus is on this design

 

There are a number of examples showing the creation of a design and sketching, circles, etc. but I am not able to determine how to invoke the "insert->svg" equivalent.

 

Thanks in advance!

Bill

0 Likes
Reply
628 Views
1 Reply
Reply (1)

balunist
Advocate
Advocate

OK, I got this.  Newbee mistake relying on Spyder help.  Discovered the object model.  🙂 .    I did notice the default insert results with the inserted svg being flipped vertically vs the user interface insert which did not.   Also the object model does not show the option to flip horizontally or vertically.   Ideas?   Thanks!

0 Likes