Gohanto Posted January 27, 2013 Posted January 27, 2013 Found a lot of helpful posts similar to what I'm trying to do, but nothing just close enough for me to get this working. The majority of symbols we use are built around a box with attribute text inside, and a "leg" that shows the attachment to the wall. Currently, the box w/ attribute text and the leg are separate blocks, since when the leg is built into the text box, the text and the box will rotate as well (they need to remain horizontal, always, but also connected to the leg). Does anyone have any suggestions for what might work? My perfect block would be an insertion point at the bottom of the leg that aligns to whatever angle wall it is attached to, and the text box positions itself (rotated horizontally). Quote
MSasu Posted January 28, 2013 Posted January 28, 2013 This seems to be job for dynamic blocks; may want to check this tutorial to get you started. Quote
edwinprakoso Posted January 28, 2013 Posted January 28, 2013 A hint: There is alignment parameter in dynamic block. You may want to try it. Quote
Gohanto Posted February 6, 2013 Author Posted February 6, 2013 Thanks, I figured out the alignment and flip commands to get the block to rotate around, however I can't figure out how to have the text move with the block (so it stays inside), but not rotate upside down. Any ideas? Quote
dbroada Posted February 6, 2013 Posted February 6, 2013 I have covered this several times here but basically add a point parameter that gets rotated and add a move action to your text. That way the text can follow the point but doesn't get rotated. Either search here or post the block you have so far if it is not clear what I have said. Quote
Gohanto Posted February 7, 2013 Author Posted February 7, 2013 Sorry I wasn't able to find your previous posts (have some trouble finding the right search terms for AutoCAD questions), did as you suggested an added a point and move command to the attributed, but now when I exit block editor the text attributes vanish. Any ideas? (Thought it may been AutoCad being funky, so tried restarting already but still the same issue) BOX_TXT_DYN1.dwgFetching info... Quote
dbroada Posted February 7, 2013 Posted February 7, 2013 I think you were almost there. The "leg-2" block was working better than the BOX_TXT_DYN1 one so I have returned that. The one thing I didn't say was that you need to allow chain actions on the point parameter to get the move to work. I also thought the text vanished when I first tried this block but I had added a second move and the text just moved itself off my screen. I have now read your request a bit further and it appears you need a rotation too. You may need to think a bit sideways but similar techniques to the point & move combo can be used to facilitate rotations. Good luck. Leg2.dwgFetching info... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.