What's new

Has anyone written anything that will create a new sketch?

cclark440

Alibre Super User
Has anyone written anything that will create a new sketch?

AAAAAAAAAAAHHHHHHHHHHHHHHH!

Has anyone written anything useful with the API? :x

I gotta be missing something simple!
 

modtek

Member


Hello,

In "Binaries" one example is posted on 19th March. It calculates some property (perimeter , I think) of a sketch.
Hope that this example is of some help.

modtek
 

cclark440

Alibre Super User


modtek
Thanks for the suggestion, but that didn’t quite help. It did however get me to thinking, so I dug a little deeper and found my solution.

The example in the Alibre API help file says this
Code:
Set objADDesignPlane = objADDesignSession.DesignPlanes(\"XY-Plane\")

This is how the code actually needs to look to add a new sketch to an existing plane.
Code:
Set objADDesignPlane = objADDesignSession.DesignPlanes().Items(\"XY-Plane\")
 
Top