Dynamic axis

Dynamic axis

Anonymous
Not applicable
1,390 Views
4 Replies
Message 1 of 5

Dynamic axis

Anonymous
Not applicable

Hi, I want to create a block of axis with following features:
1. Variable length of an axis (linear stretch).
2. Variable number of stations along axis depending on the length of the axis.

So finally it is recommended to change these parameters with one grip - linear stretch.


Point 1 is not a problem but I cannot solve point 2 issue.
I think stations need to be an array action.
I've tried the base station (base for an array action) as a field text or as a ordinate dimension but it failed each time (field still refers to the base station, and ordinate dim copies and does not sustain the base in ''0'').
I attach my tries and an image of the final block should work like.

0 Likes
Accepted solutions (1)
1,391 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor
Accepted solution

The following screencast shows how to auto-number.  

 

 

Message 3 of 5

Anonymous
Not applicable

Great! Thank You.

I also want the X-axis to start with value given by user (by attribute). I have tried to implement Your solution but without any results. Field as a formula (sum) within global block does not calculate and definition of block 'number' cannot be changed to field formula, because it needs data outside this block (attribute with start value).

I know my english is bad so I add a file that explains the problem (I adjusted the block to my final sizes and station values). If You find time to challange this again, use the file You have been working on.

 

My bad (and I am sorry) I did not define my all conditions at first post, but I found it too complicated and I thought I could manage with the field task on my own.

0 Likes
Message 4 of 5

Libbya
Mentor
Mentor

I don't know of a way to have user input alter the starting number with a limitless array.  Is there a workable limit to the grid?  How many arrayed objects?

0 Likes
Message 5 of 5

Anonymous
Not applicable

Unfortunately the grid length (and number of arrayed objects) is unlimitted. Station fields do not work together with additional Start-Axis-attribiute. It works when the start value of the axis is given by text/mtext saved in the blok definition and it is enough for now. I will write lisp routine that will let change this start values in block definition and save the block with its unique name (name linked with 'cdate' variable). I could send You the lisp if You like.

 

I really appreciate Your help. I attach my final block. Maybe someone can use it or inspire.

Greetings

0 Likes