The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#15547 by devinder
Mon Nov 20, 2006 9:37 am
Some of the DCAL routines have been incorrectly mentioned in UInterfaces.pas and can cause Internal Diagnostics error on its use. The correct function calls for these are as follow:

Code: Select allPROCEDURE menuArcCentChrd (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;
PROCEDURE menuArc2pt (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;
PROCEDURE menuArc3pt (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;
PROCEDURE menuArcCentAng (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;
PROCEDURE menuArcCentArc (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;
PROCEDURE menuCrcRad (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar : pboolean);stdcall; external AppName;
PROCEDURE menuCrcDia (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar : pboolean);stdcall; external AppName;
PROCEDURE menuCrc3pt (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar : pboolean);stdcall; external AppName;
PROCEDURE menuArcTan (VAR iwant : wantType; VAR arg : CircMenuArg; doPolyline : boolean;
                                                        docovervar, doclosedvar : pboolean);stdcall; external AppName;


NOTES:
doPolyline tells to generate a polyline entity Vs arc/circle entity defined with closed (doclosedvar) and cover (docovervar) flag.

We are thankful to Pietro Moras for bringing these to our attention and I apologize for the errors.
#15914 by devinder
Mon Nov 27, 2006 10:07 am
All the previously mentioned DCAL functions need further investigation and may not work completely for now. It seems to be byte alignment problems with this function which is causing docovervar and doclosedvar not to work as desired. The CircOptions record may have to packed in future version to fix the problem in both DataCAD and DCAL units. Doing so only in DCAL will not work.

Who is online

Users browsing this forum: No registered users and 17 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984