Page 1 of 1

Delphi for DCAL corrections

PostPosted: Thu Dec 06, 2007 7:44 am
by ERT
1.
modegroup not exist in DataCAD12. This variable = 0.

2.
These functions' syntax is not correct. In DC12 not changed.
in DC11:
wrong: 'gridcalc' good:'gridCalc'

in DC12:
wrong: 'pntinpoly' good:'pnt_in_poly'
wrong: 'symcreate' good:'sym_create'
wrong: 'symread' good:'sym_read'
wrong: 'wnwdin' good:'windowin'

3.
Is these functions usable in DC12 or not like DC11?
'atan2'
'cart_cylind'
and
'disfromseg'
'disfromlin'

4.
What is the syntax these functions:

DC11 and DC12:
callBezbsp
callDimAng
callDimDia
callDimLin
callDimRad
callDimXplode
callgetlayer1
disfrompolyvert
drawline2
getlinecolor
setlinecolor
sym_next

DC12:
Cwrtmsg
GetLoadedLines
GetLoadedMaterials
GetLoadedWinLines
GetPaletteColorName
plvoid_add
plvoid_del
plvoid_delall
plvoid_get
plvoid_init
plvoid_update
Str2ParserAng
Str2ParserDis
Str2ParserInteger
Str2ParserReal

plvoid may be the polyline void?

ERT

Re: Delphi for DCAL corrections

PostPosted: Fri Jul 05, 2019 5:44 pm
by dhs
Just noticed that the PntInPoly address changed in UInterfaces.pas between v21.00.00 and v21.00.01 (in 21.00.00 it was GetProcAddress(dllhandle, 'pntinpoly'), in 21.00.01 it is GetProcAddress(dllhandle, 'pnt_in_poly').

I can't see it documented anywhere, but I'm assuming that this was to fix one of the incorrect definitions reported in this post (and the crashes that I reported with this procedure a couple of years ago) ?