Message 1 of 3
Inserting Blocks Using Delphi - Tony?
Not applicable
12-04-1999
12:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've used Delphi extensively (thanks to Tony T.) and up to this point have
not had the need to insert a block. I'm using AutoCAD r14.01. I don' t
want to insert a drawing file since I like my applications to be self
sufficient when possible. I'm actually checking the block table to see if
it exists, if not the block is created. Up to this point everything works
great. I've checked to see that the block definition was created and was
able to insert the block using the insert command.
Where I run into problems is when I call the InsertBlock() method. I don't
get an error but the block is not inserted and there is a message displayed
everytime the method is called "Invalid Complex Object" or something to that
effect.
I don't have the code with me but after having creating a successful block
definition I call the following:
var
pt1 : OleVariant;
I've used Delphi extensively (thanks to Tony T.) and up to this point have
not had the need to insert a block. I'm using AutoCAD r14.01. I don' t
want to insert a drawing file since I like my applications to be self
sufficient when possible. I'm actually checking the block table to see if
it exists, if not the block is created. Up to this point everything works
great. I've checked to see that the block definition was created and was
able to insert the block using the insert command.
Where I run into problems is when I call the InsertBlock() method. I don't
get an error but the block is not inserted and there is a message displayed
everytime the method is called "Invalid Complex Object" or something to that
effect.
I don't have the code with me but after having creating a successful block
definition I call the following:
var
pt1 : OleVariant;