Author Topic: Extrusion of Xref Block  (Read 2214 times)

0 Members and 1 Guest are viewing this topic.

kwarmington

  • Guest
Extrusion of Xref Block
« on: April 01, 2009, 02:52:40 AM »
I have an Xref that I’m trying to overlay into a drawing. I can get an Autocad blockreference object, which I’m then trying to manipulate its scale, rotation etc.

blockref.Rotation and blockRef.ScaleFactors seem to work great, however I also have an Extrusion vector that I need to apply to the Xref. This is an extrusion through the Z axis. It is equivalent to the Extrusion direction relative to UCS when you list information on an Xref.  It is also the values in the DWF group code 210.

I have tried using the TransformBy method, but my object just seems to change position, not the extrusion.

I am really new to Autocad, and even newer to Autocad programming, if anyone has any ideas how to manipulate my Xref it would be greatly appreciated.


Kate

kwarmington

  • Guest
Re: Extrusion of Xref Block
« Reply #1 on: April 01, 2009, 09:40:40 PM »
BillZndl over on the AutoDesk discussion groups provided me with this very helpful answer:

blockref.Normal = YourVector3d;



It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8718
  • AKA Daniel
Re: Extrusion of Xref Block
« Reply #2 on: April 01, 2009, 09:47:58 PM »
Great! Thanks for sharing the answer!
And Welcome to theSwamp  :-)