When you install DraftSight Professional or Enterprise version then DraftSight APISDK is installed with it.
Inside APISDK Folder you will find ‘samples’ folder where all Sample API Projects are stored as per API supported Languages.
Check C:\Program Files\Dassault Systemes\DraftSight\APISDK\samples\
Now How to Load those Sample Project dlls in DraftSight?
Lets try to load C++ sample project ‘DrawCircleCommand; in DraftSight .
- Open DraftSight window.
- Go to Command Window
- Type Command: LOADAPPLICATION
Go to dll Path: C:\Program Files\Dassault Systemes\DraftSight\APISDK\samples\C++\Simple\DrawCircleCommand\Release
- Select dll and Click Open.
- Click ok on pop up.
From Menu bar Go to Tools >click on ‘Add-ins’
You can check Add-ins loaded inside DraftSight Add-Ins .
This add in file creates DrawCircle command in DraftSight.
Inside Command Window Type command name
Specify center point for circle» Click inside GA
Specify point on circle» Click another point in GA
You circle is placed !
Same way you can access other Sample Projects Created in different Programming Languages. Let us know if you can Load Sample Projects inside your DraftSight.
if you face any problem then comment below !
<<< Back to DraftSight API page