That doesn't seem to do it. I still get "Cannot implicitly convert type
'object' to 'double[]'". The fifth parameter is declared as type "object" in
"TranslateCoordinates(object Point, AcCoordinateSystem FromCoordSystem,
AcCoordinateSystem ToCoordSystem, int Displacement, object OCSNormal)" yet
the compiler seems to be trying to convert this to double[]. The AutoCAD
help file describes the last parameter, OCSNormal, as a "Variant
(three-element array of doubles); input-only;optional" which is why I tried
new double[] { 0.0, 0.0, 0.0 }. I need another hint.
thanks
"Paul Richardson"
wrote in message
news:6058394@discussion.autodesk.com...
Try System.Type.Missing
"LJB" wrote in message
news:6058315@discussion.autodesk.com...
I'm trying to use Utility.TranslateCoordinates from a C# application. In
VB/VBA I only needed to provide the first four parameters with the fifth
being optional. In C# it seems I must provide all five parameters but I do
not know what to give it as the fifth. Does anyone have any ideas? I'm still
new to .Net/C# and have tried the following:
ActiveDoc.Utility.TranslateCoordinates(
tempPt,
AcCoordinateSystem.acWorld, A
cCoordinateSystem.acUCS,
0,
new double[] { 0.0, 0.0, 0.0 })
ActiveDoc.Utility.TranslateCoordinates(
tempPt,
AcCoordinateSystem.acWorld,
AcCoordinateSystem.acUCS,
0,
null)
thanks
LJB