Implemented Scripting

I’ve added entity functions to enable scripting for the user.

For example, if a user wants to draw a point in the scene, he/she can write:


and a point entity will be created at (200,300) position in the scene.

Similarly other entities can be drawn using following commands:

cad.line(112,60,630,478); // line with start_point(112,60) and end_point(630,478),444,60); // circle with center at point(505,444) with radius = 60
cad.ellipse(432,88,65,90); // ellipse with center at point(432,88) with minor_radius = 65 and major_radius = 90

Arc and text entities are yet to be implemented which will be done next.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s