Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Pro/Toolkit - Way to place symbol

rnd_doss

New member
Guys,


Is there anyway to place the drawing symbol (by using ToolKit API functions.) in active drawing without retrieving them. As i know the function only retrive the symbol into the memory. But there is no way to place directly in the drawing by mouse click.


Thanks,


Murugadoss
 
Hello Doss,


Yes,It is possible to place a symbol with mouse click in atcive drawing or if you know the position in terms of screen co-ordinates.In both the cases you can able to place the required symbol in drawing uisng Pro-Toolkit.


You need to follow as


err = ProDrawingDtlsymdefRetrieve();


err = ProDtlsyminstdataAlloc();


err = ProDtlsyminstdataDefSet();

err = ProDtlattachAlloc(PRO_DTLATTACHTYPE_FREE,NULL, sym_position, NULL, &attach);


err = ProDtlsyminstdataAttachmentSet();


err = ProDtlsyminstCreate();

err = ProDtlsyminstShow();


err = ProDtlattachFree();

err = ProDtlsyminstdataFree();



With regards,


Kishore V
 

Sponsor

Articles From 3DCAD World

Back
Top