Author Topic: import layers using ObjectDBX, or at least retreive a layer list with info  (Read 1716 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
i've been looking at James' importlayer routine as an example, but i've noticed that if the layer already exists in the drawing, it will not alter it (color, linetype, etc.). is it possible to import layers through dbx and have it edit existing layers?
another option, would be to just retrieve all of the selected dwg's layer info in a list ( "layer name" "color" "linetype" "plot/noplot"), from there i could just entmod and create/recreate the layers. i noticed you use vla-get-layers to retrieve the layer name, but i can't figure out how to get the other layer info. is any of this possible?

James' routine that i've been looking at as an example is located here: http://www.theswamp.org/index.php?topic=24404.new#new
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

T.Willey

  • Needs a day job
  • Posts: 5251
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: import layers using ObjectDBX, or at least retreive a layer list with info
« Reply #2 on: November 17, 2008, 08:16:57 PM »
This should help you out.

[ http://www.theswamp.org/index.php?topic=12845.msg156899#msg156899 ]

man, Tim, that's beautiful. that gives me everything i need to know. i'm still going to write my own, looking at yours, so i can learn.
thanks so much. :)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox