Copying selections or blocks

Copying selections or blocks

Anonymous
Not applicable
316 Views
1 Reply
Message 1 of 2

Copying selections or blocks

Anonymous
Not applicable
I'm working on a delphi application that works with autocad (tested with 2008 and 2009). Right now I need a command to either:

- Copy some selected items from one document and paste to another existing document, or
- Export blocks from one and import them to another existing document.

I've already been able to select all the items or blocks that I need, but I'm unable to find any command to export those selections to a new file, something like:

{code}selectedStuff.CopyToFile('filename', insertPoint1, insertPoint2, scale);{code}

or

{code}block.ExportTo('filename', insertPoint1, insertPoint2, scale);{code}

Right now I've gotten most of the info about autocad commands from VB programs, so any help on VB will be appreciated too.
0 Likes
317 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Look at CopyObjects in the help files
hth
mark

wrote in message news:6181343@discussion.autodesk.com...
I'm working on a delphi application that works with autocad (tested with
2008 and 2009). Right now I need a command to either: - Copy some selected
items from one document and paste to another existing document, or - Export
blocks from one and import them to another existing document. I've already
been able to select all the items or blocks that I need, but I'm unable to
find any command to export those selections to a new file, something like:
{code}selectedStuff.CopyToFile('filename', insertPoint1, insertPoint2,
scale);{code} or {code}block.ExportTo('filename', insertPoint1,
insertPoint2, scale);{code} Right now I've gotten most of the info about
autocad commands from VB programs, so any help on VB will be appreciated
too.
0 Likes