rotate3d help needed

Discussion in 'AutoCAD' started by navi800, Jun 29, 2004.

  1. navi800

    navi800 Guest

    I am attempting to rotate an Acad3dSolid using rotate3d im using two variant
    arrays of 3dpoints and a double for the rotation angle.

    tempobj.rotate3d startaxis,endaxis,rotation

    i keep getting a invalid procedure or argument error (error #5)

    could someone please help

    navi
     
    navi800, Jun 29, 2004
    #1
  2. navi800

    wivory Guest

    That looks okay on the face of it. Please post the *real* code including the declarations to see if we can spot anything.

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Jun 30, 2004
    #2
  3. navi800

    navi800 Guest

    thank you for your help but I was able to fix the code it turns out you cant
    declare arrays in series
    "dim arr(0 to 2),arrr(0 to 2) as double"
    the first one is declared properly but the second is declared as a string
    go figure

    navi

    the declarations to see if we can spot anything.
     
    navi800, Jun 30, 2004
    #3
  4. navi800

    wivory Guest

    What you are saying is not quite correct. See this code:
    [pre]
    Dim arr(0 To 2), arrr(0 To 2) As Double
    Debug.Print TypeName(arr), TypeName(arrr) ' Outputs "Variant() Double()"
    [/pre]
    This is consistent with the following statements in the Help for Dim:
    [pre]
    "Use a separate As type clause for each variable you declare."
    "If you don't specify a data type or object type, and there is no Deftype statement in the module, the variable is Variant by default."
    [/pre]
    In older versions of Basic you could declare multiple variables on a single line like that and they would all be the same data type, but such is not the way with VB(A).

    Regards

    Wayne
     
    wivory, Jul 1, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.