Author Topic: AddCustomObject  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

jbuzbee

  • Swamp Rat
  • Posts: 851
AddCustomObject
« on: July 23, 2008, 10:53:13 AM »
Ok, I figured I get more help here:

AutoCAD Architecture 2009 - trying to add a Mask Block to modelspace with AddCustomObject

Code: [Select]
object.AddCustomObject(AecDbMaskBlockRef)
I'm actually using:

Code: [Select]
(vla-AddCustomObject modelSpace "AecDbMaskBlockRef")

and I get the error:

Error: Automation Error. Description was not provided.

I can do doors, walls, everything else except Mask Blocks.  Any ideas??

thanks for any input.
James Buzbee
Windows 8

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: AddCustomObject
« Reply #1 on: July 23, 2008, 11:19:05 AM »
Never mind,  :x

I can't believe I've been working on this for an hour and it's a stupid typo:

AecMaskBlockRef

not

AecDbMaskBlockRef

 :-P
James Buzbee
Windows 8