amosweing Posted September 18, 2014 Posted September 18, 2014 hi i"m trying to create a dynamic plan-staircase with step numbers, the stairs are added by an array command and i could count the total number of stairs by dividing the total distance by width of step. stair2.dwg but i want a number on each step ! (using autocad 2014) Quote
Dana W Posted September 19, 2014 Posted September 19, 2014 There is something wrong in the drawing. It wants me to open the drawing in the block editor. I cannot save, close the block editor, and insert the block. Once I save the block definition, and close the block editor, stair2 does not exist anywhere. Then, I cannot open the block editor again, at all. The only way I can view or edit the block again is to close without saving and re-open the drawing again. The block testing function does work, however. I am impressed with the bi-directional stretch. I wonder if there is a way to include an attribute in the array that contains a field with the current array element count, or simply an incremental value on each step. Quote
dbroada Posted September 19, 2014 Posted September 19, 2014 When I last tried this I couldn't find a way either, although there may be one I haven't discovered so I will continue to watch. I ended up doing much what you have done, just put a total by putting the formula in an ATTDEF and move it with the distance parameter. Quote
amosweing Posted September 19, 2014 Author Posted September 19, 2014 nothing wrong with the file: its an external block (created with wblock) so it has to be called up by a different file to work normally (or just use "test block") antway, another thought is to use SLtext with field instead of attdef - that way you don't get the useless user-prompt. but my problem remains: what field defines array number or current distance from start? Quote
steven-g Posted September 19, 2014 Posted September 19, 2014 I'm impressed with the block, so I will let you play with this idea, attached is just a simple block that increments a number depending on an array stretch, arraying attributes just on there own is a problem so this uses a nested block. Try and see if you can use the idea. Counter.dwg Quote
Madruga_SP Posted September 19, 2014 Posted September 19, 2014 Fantastic Steven! How could you increment a numbers? Congratulations Quote
dbroada Posted September 19, 2014 Posted September 19, 2014 yet again, very nice steven. Where do you get all your ideas? Quote
steven-g Posted September 19, 2014 Posted September 19, 2014 I just hate not being able to do something so I keep trying, I was one of those kids that took things to pieces, I still do Quote
dbroada Posted September 19, 2014 Posted September 19, 2014 I was one of those kids that took things to pieces, we've all done that. How were you at putting them back together afterwards? Quote
steven-g Posted September 19, 2014 Posted September 19, 2014 we've all done that. How were you at putting them back together afterwards? You're supposed to put them back together ! That sounds novel, (I do pretty well at that too) Quote
amosweing Posted September 22, 2014 Author Posted September 22, 2014 Thanx Steven! I finally managed to use your idea by reffering to the Y position of a point in the arrayed block and dividing by the increment. it took a long time, but i think its finnaly working. stair3.dwg i attached the file for anyone who wants (the only constants are the step size=28, and min number of flight=3) Quote
steven-g Posted September 22, 2014 Posted September 22, 2014 I'm impressed you did that nicely, glad I could contribute in some small way. Quote
Deodar311 Posted March 13, 2018 Posted March 13, 2018 How did you do it Steve? I took your file and twisted it every way I could, but I can't figure it out. I see the nested fields within the block, but I cannot duplicate your methods. I would like to change the shape of the block, the direction (vertical) and center the text. I can change some things, but not everything. Could you outline the process? Thanks! Quote
Deodar311 Posted March 13, 2018 Posted March 13, 2018 Steve - Making progress, but how did you determine the circle (field) should be divided by 20? Every time I try to change the circle to a triangle or other shape, the field returns a null value (#). I have reset the field to polyline (it's a triangle) and divided the field by 3 (the number of sides of the polygon), but still not working. What am I missing? Quote
steven-g Posted March 14, 2018 Posted March 14, 2018 The problem you are having is presumably you are deleting the circle. The block shown above has a field formula inside another field and it uses the center point of the circle (a selected object) and it just reads the x value of the circle's position. If you are changing to another type of object then you will need to use that object to read the properties from, the number 20 is just the distance that the array is set to, so the first circle center is at x=20 to make that read 1 it's easiest to just divide by 20 (20/20 = 1) the second circle in the array is then at 40 (40/20 = 2) so the numbers you see are the result of that simple math, it doesn't actually increase the number it just does some math and shows the result, if you want to go vertical then use the Y value of the object and array vertically. If you are changing to a triangle then that isn't a built-in object type but you could read the properties for the end of a line or just place a point as the object to be arrayed. Quote
Deodar311 Posted March 18, 2018 Posted March 18, 2018 I finally made it work, but it wasn't easy... and it's crude. The trick is copying the block the same distance it will be duplicated. The field I used was POSITION, and then locking the "Y" axis. However when the block is drawn and dragged down, the position resulted in a negative number. To correct this I multiplied it by -1. So the field now looks like this: (-10/10)*-1 Thanks for your help Steve! Quote
steven-g Posted March 19, 2018 Posted March 19, 2018 Your welcome, it's always nice to hear when someone can further develop and make changes to ideas. Quote
iconeo Posted June 5, 2018 Posted June 5, 2018 Interesting approach Steven. I'll keep this one in mind. 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.