Author |
Topic |
|
mabel
Starting Member
3 Posts |
Posted - April 17 2007 : 3:00:12 PM
|
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
|
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 |
|
|
n/a
deleted
112 Posts |
Posted - April 20 2007 : 08:52:21 AM
|
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
|
|
|
mabel
Starting Member
3 Posts |
Posted - April 20 2007 : 4:45:21 PM
|
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... |
|
|
n/a
deleted
112 Posts |
Posted - April 20 2007 : 4:54:49 PM
|
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
|
|
|
n/a
deleted
112 Posts |
Posted - April 20 2007 : 5:06:05 PM
|
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
|
|
|
Admin
Administrator
652 Posts |
|
mabel
Starting Member
3 Posts |
Posted - April 23 2007 : 12:53:36 PM
|
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! |
|
|
|
Topic |
|