Was searching forums for hours(around 5, yes im desperate
![Hit my head against the wall. :headwall:](./images/smilies/headwall.gif)
Short Function description Im trying to use:
object.GetXData AppName, XDataType, XDataValue
Where, GetXData - my fuction call/method I guess...
AppName - String input I need to send. Can send no input to Get all data. Then I recive array of all XDataType, XDataValue
XDataType, XDataValue - variables I need recive/see.
AutoCAD descrition of function if needed:
http://help.autodesk.com/view/ACD/2015/ ... 15B6B98426
How my syntax should look, so I could "see" XDataType, XDataValue ?
Tried:
variable := object.GetXData("AppNameRandomString", XDataType, XDataValue)
MsgBox % XDataType XDataType[1] XDataType[1,1] XDataType[1][1] ; nothing
How does AHK knows, what variable in brackets () we send and which one we recive/read ?
AutoCAD doesn't give error if im calling with such syntax, though removing one of items in brackets starts giving error.
If id need to recive 1 variable.
Var := Object.Function
or
Object.Function(var)
works
So in theory, to recive 2 variables.
Object.Function(var1, var2) should work. Though I cant read values ( how do I know If I even get them ? )
Also I cannot use simpler function, where I do not need to "send" any parameters:
object.GetBoundingBox MinPoint, MaxPoint
Written in AHK should look like:
object.GetBoundingBox(MinPoint, MaxPoint)
MsgBox % MinPoint MinPoint[0] MinPoint[0, 1] MinPoint[0][1] ; doesn't give me anything.
MinPoint, MaxPoint - should be arrays.
As writing this post I got idea, for syntax, which work on some other cases.
If XDataType is array. need to write something like this :
variable := object.GetXData("AppNameRandomString", XDataType, XDataValue)
For Object/item in XDataType
MsgBox % XDataType[1]
Ok, this, didnt worked...
Please. Any help appreciated
![Smile :)](./images/smilies/icon_e_smile.gif)
Best Regards,
Anbra