The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Block line colors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scottabray
Starting Member

USA
2 Posts

Posted - June 30 2008 :  2:22:30 PM  Show Profile  Reply with Quote
Without exploding a block, is there a line of code I can put into my background process to change all lines IN all blocks to "by layer"?

Admin
Administrator



652 Posts

Posted - June 30 2008 :  5:04:13 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
I don't think so. Without exploding the block upon insertion (use "*BLOCKNAME"), there isn't a way to manipulate the block at all.

I'd love it if someone proves me wrong though!

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

n/a
deleted

112 Posts

Posted - June 30 2008 :  5:52:02 PM  Show Profile  Reply with Quote
Bill,
The attached file should come close to proving you wrong. The only problem is, I think it will change all entities within the block to bylayer. I'm hoping that is what the requester really wanted, but I'm afraid he may have only wanted to change LINE entities, in which case the routine will need to be revised. I don't think I'm going to have time to do anything more with it, however.

Download Attachment: BlkColor2Bylayer.zip
1.09 KB

Steve Bubendorf
Go to Top of Page

n/a
deleted

112 Posts

Posted - June 30 2008 :  5:56:53 PM  Show Profile  Reply with Quote
OOPS !! I forgot to change the program name within the lisp file. This one will match the program name to the file name, so it makes more sense.

Download Attachment: BlkColor2Bylayer.zip
1.09 KB

Steve Bubendorf
Go to Top of Page

n/a
deleted

112 Posts

Posted - July 01 2008 :  08:51:30 AM  Show Profile  Reply with Quote
This one should just do lines.

Download Attachment: BlkLineColor2Bylayer.zip
1.17 KB

Steve Bubendorf
Go to Top of Page

scottabray
Starting Member

USA
2 Posts

Posted - July 01 2008 :  5:01:43 PM  Show Profile  Reply with Quote
Steve, your description sounds like the result that I want, but unfortunately I'm in LT07. I would like to add this functionality to my existing scr. Our procedure is to take the architect backgrounds, purge, change all layers to color 8 and save. But when a line inside the block is set to a specific color, that overides what the block layer color is.

Here is our scr, one of our other cad guys wrote most of it, I've added a few things to it too.

Scott

Download Attachment: Proc-bg.txt
646 Bytes
Go to Top of Page

n/a
deleted

112 Posts

Posted - July 01 2008 :  5:15:46 PM  Show Profile  Reply with Quote
I'm sorry, Scott. I don't think there is any way to do what you want to do without the availability of programming languages such as AutoLisp or VBA, etc. I guess that's why they charge a fortune for the full version.

Steve Bubendorf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.29 seconds. Snitz Forums 2000