.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In addition to AcDb.Database.Wblock()

3 REPLIES 3
Reply
Message 1 of 4
jbooth
401 Views, 3 Replies

In addition to AcDb.Database.Wblock()

Good afternoon,

I have a portion of code that takes a collection of entities and copies them from the active document into a new drawing.

This routine is batched (multiple drawings, multiple collections), so speed is an issue.

Anyway, calling the WBlock() method of the Database object works well enough, but the export ends up missing some key data. For example, layers, and system variables like viewres and pellipse.

Any suggestions?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: jbooth

If items like layers are referenced by the entities you're
cloning, they should be included unless they are named
objects that already exist in the destination database.

You can manually add items to the clone map as well,
from the DeepClone events.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5564628@discussion.autodesk.com...
Good afternoon,

I have a portion of code that takes a collection of entities and copies them from the active document into a new drawing.

This routine is batched (multiple drawings, multiple collections), so speed is an issue.

Anyway, calling the WBlock() method of the Database object works well enough, but the export ends up missing some key data. For example, layers, and system variables like viewres and pellipse.

Any suggestions?
Message 3 of 4
jbooth
in reply to: jbooth

Is there a table of document specific system variables I can access?

To clarify: I wanted the entire dimstyle and layer tables to be exported into the new drawing (which I can do manually myself). My issue is with the system variables that get saved into the document.
Message 4 of 4
Anonymous
in reply to: jbooth

Document specific system variables are exposed
as members of the Database class.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5565466@discussion.autodesk.com...
Is there a table of document specific system variables I can access?

To clarify: I wanted the entire dimstyle and layer tables to be exported into the new drawing (which I can do manually myself). My issue is with the system variables that get saved into the document.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost