Author Topic: Block Help needed.  (Read 1215 times)

0 Members and 1 Guest are viewing this topic.

V-Man

  • Bull Frog
  • Posts: 343
  • I exist therefore I am! Finally Retired!
Block Help needed.
« on: August 29, 2013, 10:44:40 AM »

I'm in need of inserting a block into the BlockTableRecord without actually inserting the block into the drawing. I have seen code and examples for .NET but nothing in Lisp or Vlisp. How to go about this?

Thanks,

Don
Autocad 2012
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Block Help needed.
« Reply #1 on: August 29, 2013, 11:02:19 AM »
Using the -INSERT command:
Code - Auto/Visual Lisp: [Select]
  1. (command "_.-insert" "Your-Block-Name-Here" nil)

Using the insertblock ActiveX method:
Code - Auto/Visual Lisp: [Select]
  1.         (vlax-3D-point 0 0)
  2.         "Your-Block-Name-Here" 1.0 1.0 1.0 0.0
  3.     )
  4. )

V-Man

  • Bull Frog
  • Posts: 343
  • I exist therefore I am! Finally Retired!
Re: Block Help needed.
« Reply #2 on: August 29, 2013, 11:06:21 AM »
Lee Mac Thanks for the quick response. That's it. I should have known the the first option... duh...  :-)
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Block Help needed.
« Reply #3 on: August 29, 2013, 11:11:33 AM »
- You're welcome  :-)