mechaneco Posted September 29, 2016 Posted September 29, 2016 Hi everybody, I wanted to know if there is a way I can control the layer a block is in through the block table, so if I change a set of parameters through the table, one of them could be "Layer" and that way I can change it appereance. I want to avoid visibility parameters, as there are too many permutations of blocks for that. Thanks for the help in advance! Quote
RobDraw Posted September 29, 2016 Posted September 29, 2016 What is the block table? It sounds interesting. Something custom or an add-on of some sort? With it being so easy to change the layer that a block is on, I think you are asking about something more involved than just changing the assigned layer of a particular block. Visibility parameters makes it sound like you are working with a dynamic block and that property has nothing to do with layers, AFIK. Quote
mechaneco Posted September 29, 2016 Author Posted September 29, 2016 butaca.dwg I would like this block to be the ultimate chair placement planner for cinemas and the like, so far I have managed to change the dimensions of different parts through a block table, I would like to use this tool to also change the layer of the block, so I get a visual queue of the different chairs used in the room. What I would also like: - maintain an align paramenter centered when changing width (necessary for adapting to the arcs of the "steps" of the room. I think that it´s staying in the same position relative to the origin of the block - Be able to "repeat" the block (like in an array) and change each instance as I see fit, and when I change the width of an instance, the rest of the array accomodates to make room for it. Christmass wish: That given a length for this "array" (I don´t know if its possible to do it with that tool, it´s very restrictive) the block accomodates the chairs within this distance changing the widths as needed (for example, give a length of 65", it places two 23" chairs and a 22" chair to get the best approximation possible to the length) I´m doing it manually right now, very time consuming as there are theaters with many row widths. Thanks for your quick response! Quote
RobDraw Posted September 29, 2016 Posted September 29, 2016 Good explanation. I can't wait to take a look at it, tomorrow. I'm sure someone here has done something like that before and will be able to help you out. Quote
BIGAL Posted September 30, 2016 Posted September 30, 2016 It may be better to not use a dynamic block rather take the length divide / 23 check remainder and add a 22 21 19 etc to make it work. Just me as I dont play with dynamic blocks much. Chairs on a curve come to mind. The other way would be to add a second chair to the block which has its own sizes lookup. The 1st chair has an extra dynamic which is a repeat function as you drag. You could then probably add a lisp control pick point1 point2 all done. You would probably need a left and right version. Here is a good sample dwg that has auto repeat in it, plus other restraints. Parking Tools - Imperial.dwg Quote
mechaneco Posted September 30, 2016 Author Posted September 30, 2016 @Bigal: The idea of a second chair is a nice one, I want to avoid the handles as much as I can, so I think i´ll keep the size as it is. How can yo make the repeat action to make a curve? maybe an action for straight line and one for curves? any idea about the centered align parameter? nice blocks you attached... parking lots? the repeat action is an array, it´s great for this application, because the width of the parking place should be always the same. I guess that if the block is simple enough it shouldn´t be so cumbersome to "stack" a couple of instances to complete rows, but it would still be an iterative process to solve each row, for example, If you wanted to chain handicapped spaces with normal ones on a single block (I know, everybody tells me I should keep blocks simple, but the path of learning and mastering is a thorny one). Thanks for the example, I think I learned a thing or two from it. Seeing the above example from BIGAL, I think I would think in advance and make the chairs "share" armrests, so in the future I can extract the info to make material calculations a breeze, so far I´ve got the following: IOI wich would repeat IOIIOIIOIIOI, even when I overlap an armrest, I will change the block to IOIOI with a repeat on the first seat and middle armrest, so it repeats IOIOIOIOIOI @RobDraw Thanks on any improvement for the dynamic block, I appreciate the effort! Quote
BIGAL Posted October 1, 2016 Posted October 1, 2016 Sounds like your heading in right direction. The lisp to work out a left & x mids & right is pretty straight forward and as your ends have a size variation will help. You can use 1 dynamic block and adjust size rather than have multiple blocks for each size. Lee-mac has good dynamic block routines and they are very simple to understand. So can be added to a repeating pattern. 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.