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

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 modify line properties in blocks
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mabel
Starting Member



3 Posts

Posted - April 17 2007 :  3:00:12 PM  Show Profile  Visit mabel's Homepage  Reply with Quote
is there any way to modify the lines inside a block without exploding the block? force line colors, line weights inside the block. i need to do there for all the blocks in the entire project...

Admin
Administrator



652 Posts

Posted - April 19 2007 :  10:25:03 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi Mabel,

I think you could try using -ATTEDIT, it can change Value/Position/Height/Angle/Style/Layer/Color.

Here is a capture of me changing an attribute in a block from magenta to white.

Command: -ATTEDIT
Edit attributes one at a time? [Yes/No] <Y>:
Enter block name specification <*>:
Enter attribute tag specification <*>:
Enter attribute value specification <*>:
Select Attributes: Specify opposite corner: 2 found
Select Attributes:
2 attributes selected.
Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] <N>:
Enter new color [Truecolor/COlorbook] <6 (magenta)>: white
Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] <N>:


To use this in a script, you might have to get into some tricky selection schemes, using the W (for window), and selecting using coordinates, or using "ALL", depending on your criteria. Also possibly using the SSX lisp to specify your selection-set (search in the Hurricane forums for examples of SSX).

I hope this helps you out?

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 - April 20 2007 :  08:52:21 AM  Show Profile  Reply with Quote
I was a little slow on this one, but maybe this would work for you, depending on your circumstances: ?

Could you create a new block (a separate drawing), with the same name and the correct colors and line weights, and then use a script to insert and redefine the existing block in your drawings?

I'm "up to my eyeballs", or I would take a stab at an example script. Maybe someone else can jump back in here and help with that.

Steve Bubendorf
Go to Top of Page

mabel
Starting Member



3 Posts

Posted - April 20 2007 :  4:45:21 PM  Show Profile  Visit mabel's Homepage  Reply with Quote
The -ATTEDIT won't work because the blocks are not necessarily attributed blocks. I need to change the line color, line type, and line weights of each line inside the block.
sbubendorf, that's what I will need to do if i can't figure out a way to modify all the blocks within the drawing. but the hassle is, first i have to run a list of all blocks present in all the drawings. wblock them out (so i have a base of the original block definition), run a script to change the properties of the lines in the block (now that they are lines in individual files), and then re-insert them back into all the drawings... sounds like at least 2 full weeks of work at least...
Go to Top of Page

n/a
deleted

112 Posts

Posted - April 20 2007 :  4:54:49 PM  Show Profile  Reply with Quote
I was hoping you had just a single block that needed to be redrawn and reinserted. Yeah, it sounds like you're going to be busy for a while.

Steve Bubendorf
Go to Top of Page

n/a
deleted

112 Posts

Posted - April 20 2007 :  5:06:05 PM  Show Profile  Reply with Quote
All of the blocks? No exceptions? Always the same color/lineweight changes in all blocks? Are there lines in the blocks that do not change?

I know this is bigger than me, but if you can identify your situation very specifically for them, there are a bunch of geniuses that hang around the following two forum sites that might be able to help you. I don't know if I've ever had a problem that someone there hasn't been able to help me with, at least somewhat:
http://discussion.autodesk.com/forum.jspa?forumID=130
http://discussion.autodesk.com/forum.jspa?forumID=33

You may want to specifically mention that you have access to Hurricane to handle the batch processing portion, if they can help you with the portion to do a single file.

Good luck !!

Steve Bubendorf
Go to Top of Page

Admin
Administrator



652 Posts

Posted - April 22 2007 :  08:48:06 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi Mabel, Thanks Steve!

Also, check out this post, as there are ways (lisp) to swap your old block with a new block (with updated colors etc).
http://www.74mph.com/forum/topic.asp?TOPIC_ID=46

Maybe there is a 'nugget' in there that might help you.

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

mabel
Starting Member



3 Posts

Posted - April 23 2007 :  12:53:36 PM  Show Profile  Visit mabel's Homepage  Reply with Quote
thanks a lot for your replies. but i think these lisp isn't what i need. and i couldn't find something on autodesk forum either. i've already looked there before. the cht only takes text, not mtext, and it only changes the style (font) but not the height. there has been some discussion on autodesk forum regarding mtext and text don't change height on style change. nobody seem to have an answer for that. as with the block replace, i actually need to replace the properties of the lines inside multiple blocks. these block replace i can do with simply insert-block and it will update with all the new properties. kinda stuck... i have looked in many forums already, and this seem to be a void that nobody seems to have done it before - although many have asked about it.
but thanks, anyway, for your help!
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.3 seconds. Snitz Forums 2000