Author
Topic: force data in all blocks to bylayer (Read 1689 times)

I have a friend with a problem. he has a very large file with many blocks that he needs to use as a background.we discussed options, but he wants to redefine all the blocks in the drawing such that the entities within have colour bylayer.

OK

I think it will look like a tablesearch of blocks and processing each entity. in order to get each entity "bylayer" .I believe the correct method is to just not set the colour dxf code at all. default is bylayer.

I am going to try to solve this for it's academic merit, but to get it done in time to do my friend any good, this go around, I would love any help I can get. perhaps there is one sitting on the shelf somewhere around here.

MP - I wandered through the help files, saw (vl-load-com) and guessed that it would serve. I pasted it into the vlax I got here and she ran. So, I sent THAT to my friend. thanks. this was the first time I had used that particular command.

gile - thanks for the link to your code. plainly, I have not had enough time to appreciate it fully. I will take that time. when I get out of this chair, this afternoon I am chauffeuring my two youngest to French class(es). as I look through your code, I will see if we can read your comments in their original form.

Matt - your one word means nothing to me. perhaps the fact that I am running Autocad 2000 like it came out of the box has a lot to do with that. Autocad 2009, I have a copy I have access to at the "branch office", but I have not needed it yet. so I remain ignorant of any particulars. of Revit, I got another friend to take one of his files and export to gbXML so that I could use it to reverse engineer and to write lisp to write to gbXML. specifically, a destination program is HAP. Revit uses undocumented tags, or I do not have the most current schema.

thanks again guys.

and as I hit the POST button, I see I have two more replies. THANK YOU ALL, AND I WILL REVIEW EVERY HELPFUL COMMENT AS SOON AS I RETURN.