Using AcAxArrayRectangular

Using AcAxArrayRectangular

Anonymous
Not applicable
436 Views
4 Replies
Message 1 of 5

Using AcAxArrayRectangular

Anonymous
Not applicable
I've been trying to use AcAxArrayRectangular AcAxArrayRectangular( AcAxObjectID objRefID, LPDISPATCH pAppDisp, int numRows, int numCols, int numLvls, double disRows, double disCols, double disLvls, VARIANT* pArrayObjs); I get the apps dispatch using the method below and I have the open (for read) object pointer to use as the Ref pDisp = acedGetAcadWinApp()->GetIDispatch(TRUE); Every time I use it I get an error 0x80210015 which I can't find. Any ideas???? Thanks.
0 Likes
437 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Please consider being a bit more descriptive and posting the relevant code. You say 'every time I use it', but don't make clear exactly what you're using. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com AcadX for AutoCAD 2004 Beta 1 http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip "Anthony" wrote in message news:4063ca18_2@newsprd01... > I've been trying to use AcAxArrayRectangular > AcAxArrayRectangular( AcAxObjectID objRefID, LPDISPATCH pAppDisp, int > numRows, int numCols, int numLvls, > > double disRows, double disCols, > double disLvls, VARIANT* pArrayObjs); > > I get the apps dispatch using the method below and I have the open (for > read) object pointer to use as the Ref > > pDisp = acedGetAcadWinApp()->GetIDispatch(TRUE); > > Every time I use it I get an error 0x80210015 which I can't find. > > Any ideas???? > > Thanks. > > >
0 Likes
Message 3 of 5

Anonymous
Not applicable
'every time I use it' refers to the subject line of AcAxArrayRectangular and in future I will endeavour to make my posts much clearer. It would also be helpful if in future Tony you could respond to me directly on such issues so that I could post more detail as required. I believe that it would be better to have the post look as if it is unanswered so that other people are more likely to chime in. That said I was hoping that someone could simply point me to the error code definitions for the AcAx functions so that I could look up the error that was returned (0x80210015). I assume that this has some meaning to someone. Thanks anyway Tony but I found the problem it was simply that number of rows, columns and levels must start at one. That is if you wish to create a 2D array the disLvls value must be 1 not 0 as I had initially assume. Thanks Anthony :). P.S. Tony I can never access the www.caddzone.com site below "Tony Tanzillo" wrote in message news:40644f84$1_1@newsprd01... > Please consider being a bit more descriptive > and posting the relevant code. > > You say 'every time I use it', but don't make > clear exactly what you're using. > > -- > http://www.caddzone.com > > AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 > http://www.acadxtabs.com > > AcadX for AutoCAD 2004 Beta 1 > http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip > > > "Anthony" wrote in message news:4063ca18_2@newsprd01... > > I've been trying to use AcAxArrayRectangular > > AcAxArrayRectangular( AcAxObjectID objRefID, LPDISPATCH pAppDisp, int > > numRows, int numCols, int numLvls, > > > > double disRows, double disCols, > > double disLvls, VARIANT* pArrayObjs); > > > > I get the apps dispatch using the method below and I have the open (for > > read) object pointer to use as the Ref > > > > pDisp = acedGetAcadWinApp()->GetIDispatch(TRUE); > > > > Every time I use it I get an error 0x80210015 which I can't find. > > > > Any ideas???? > > > > Thanks. > > > > > > > >
0 Likes
Message 4 of 5

Anonymous
Not applicable
Seems like a COM error to me. Look at Interpreting Error Codes in Platform SDK help for an example of how to get a textual description from the HRESULT. Are you sure you copied the number correctly because I think it should be in WinError.h (Visual Studio includes) and it is not. "Anthony" wrote in message news:406cd9e7$1_2@newsprd01... > 'every time I use it' refers to the subject line of AcAxArrayRectangular and > in future I will endeavour to make my posts much clearer. > > It would also be helpful if in future Tony you could respond to me directly > on such issues so that I could post more detail as required. I believe that > it would be better to have the post look as if it is unanswered so that > other people are more likely to chime in. > > > > That said I was hoping that someone could simply point me to the error code > definitions for the AcAx functions so that I could look up the error that > was returned (0x80210015). I assume that this has some meaning to someone. > > > > Thanks anyway Tony but I found the problem it was simply that number of > rows, columns and levels must start at one. That is if you wish to create a > 2D array the disLvls value must be 1 not 0 as I had initially assume. > > > > > > Thanks Anthony :). > > > P.S. Tony I can never access the www.caddzone.com site below > > "Tony Tanzillo" wrote in message > news:40644f84$1_1@newsprd01... > > Please consider being a bit more descriptive > > and posting the relevant code. > > > > You say 'every time I use it', but don't make > > clear exactly what you're using. > > > > -- > > http://www.caddzone.com > > > > AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 > > http://www.acadxtabs.com > > > > AcadX for AutoCAD 2004 Beta 1 > > http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip > > > > > > "Anthony" wrote in message > news:4063ca18_2@newsprd01... > > > I've been trying to use AcAxArrayRectangular > > > AcAxArrayRectangular( AcAxObjectID objRefID, LPDISPATCH pAppDisp, int > > > numRows, int numCols, int numLvls, > > > > > > double disRows, double > disCols, > > > double disLvls, VARIANT* pArrayObjs); > > > > > > I get the apps dispatch using the method below and I have the open (for > > > read) object pointer to use as the Ref > > > > > > pDisp = acedGetAcadWinApp()->GetIDispatch(TRUE); > > > > > > Every time I use it I get an error 0x80210015 which I can't find. > > > > > > Any ideas???? > > > > > > Thanks. > > > > > > > > > > > > > > >
0 Likes
Message 5 of 5

Anonymous
Not applicable
I assumed at first that it was a COM error to David and in fact looked through WinError.h and used the tool that ships with VS know as error lookup ( its on the tools menu ). No such luck! It maybe described in the platform SDK but I doubt it. I think it is an AutoCAD internal error code. That's fine I was just looking for the header it was defined in so I could get a description of what it meant. No Worries David I've got the answer now it all just comes down to knowing the right stuff to pass in. I think we would all agree that better documentation would be a big help. In this case it just took some logical thought and time. Thanks for the help everyone. Anthony :) "David Bartliff" wrote in message news:406d4d50_3@newsprd01... > Seems like a COM error to me. Look at Interpreting Error Codes in Platform > SDK help for an example of how to get a textual description from the > HRESULT. Are you sure you copied the number correctly because I think it > should be in WinError.h (Visual Studio includes) and it is not. > > > "Anthony" wrote in message > news:406cd9e7$1_2@newsprd01... > > 'every time I use it' refers to the subject line of AcAxArrayRectangular > and > > in future I will endeavour to make my posts much clearer. > > > > It would also be helpful if in future Tony you could respond to me > directly > > on such issues so that I could post more detail as required. I believe > that > > it would be better to have the post look as if it is unanswered so that > > other people are more likely to chime in. > > > > > > > > That said I was hoping that someone could simply point me to the error > code > > definitions for the AcAx functions so that I could look up the error that > > was returned (0x80210015). I assume that this has some meaning to someone. > > > > > > > > Thanks anyway Tony but I found the problem it was simply that number of > > rows, columns and levels must start at one. That is if you wish to create > a > > 2D array the disLvls value must be 1 not 0 as I had initially assume. > > > > > > > > > > > > Thanks Anthony :). > > > > > > P.S. Tony I can never access the www.caddzone.com site below > > > > "Tony Tanzillo" wrote in message > > news:40644f84$1_1@newsprd01... > > > Please consider being a bit more descriptive > > > and posting the relevant code. > > > > > > You say 'every time I use it', but don't make > > > clear exactly what you're using. > > > > > > -- > > > http://www.caddzone.com > > > > > > AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 > > > http://www.acadxtabs.com > > > > > > AcadX for AutoCAD 2004 Beta 1 > > > http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip > > > > > > > > > "Anthony" wrote in message > > news:4063ca18_2@newsprd01... > > > > I've been trying to use AcAxArrayRectangular > > > > AcAxArrayRectangular( AcAxObjectID objRefID, LPDISPATCH pAppDisp, int > > > > numRows, int numCols, int numLvls, > > > > > > > > double disRows, double > > disCols, > > > > double disLvls, VARIANT* pArrayObjs); > > > > > > > > I get the apps dispatch using the method below and I have the open > (for > > > > read) object pointer to use as the Ref > > > > > > > > pDisp = acedGetAcadWinApp()->GetIDispatch(TRUE); > > > > > > > > Every time I use it I get an error 0x80210015 which I can't find. > > > > > > > > Any ideas???? > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > > >
0 Likes