The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 modify line properties in blocks

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
mabel 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...
7   L A T E S T    R E P L I E S    (Newest First)
mabel 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!
Admin Posted - April 22 2007 : 08:48:06 AM
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
n/a 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 !!
n/a 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.
mabel 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 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.
Admin 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

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000