.TransformBy

Discussion in 'AutoCAD' started by antmjr, Jun 18, 2004.

  1. antmjr

    antmjr Guest

    hi all

    a question about .transformBy

    just out of curiosity, I have tried to apply a *scaled* matrix to a solid: it seems not to work (AutoCAD alerts: "General modeling failure"); so now i wonder whether the matrix has to be strictly isotropic and NOT scaled.
    Moreover: what about blocks? since it's possible to insert a scaled block, I’m expecting a referenced block to be successfully transformed by a scaled matrix; has anybody already tried?
     
    antmjr, Jun 18, 2004
    #1
  2. antmjr

    wivory Guest

    I've only used TransformBy in relation to UCS's but the example in the Help includes these matrices:
    [pre]
    ' Scaling Matrix: scale by 10,10 at point 0,0,0
    ' 10.000000 0.000000 0.000000 0.000000
    ' 0.000000 10.000000 0.000000 0.000000
    ' 0.000000 0.000000 10.000000 0.000000
    ' 0.000000 0.000000 0.000000 1.000000

    ' Scaling Matrix: scale by 10 at point 2,2
    ' 10.000000 0.000000 0.000000 -18.000000
    ' 0.000000 10.000000 0.000000 -18.000000
    ' 0.000000 0.000000 10.000000 0.000000
    ' 0.000000 0.000000 0.000000 1.000000
    [/pre]
    Regards

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

    antmjr Guest

    what a ##!##@[# I am! I wrote “Dim obj As AcadSolid†instead of “Acad3Dsolid†!!! clear I got no transformation...
    - - -
    anyway I saw I can use scaling matrices with solids and referenced blocks, but only with the same uniform scaling factor for X, Y and Z; it's impossible a more complex transformation (I think). The only exception is: I can set differently the signs of mx(0,0), mx(1,1), mx(2,2), "mirroring" the solid in different plans (that’s really great). thank you anyway
     
    antmjr, Jun 21, 2004
    #3
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.
Similar Threads
Loading...