Author Topic: Dynamic grid with individually variable horizontal line spacing  (Read 2142 times)

0 Members and 1 Guest are viewing this topic.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Dynamic grid with individually variable horizontal line spacing
« on: September 20, 2021, 04:40:03 AM »
Maybe I'll be a little off the topic compared to AutoLisp... someone did something like this?
The image on the right is a rectangular (dynamic) series but there is no possibility of individually varying the distance between the horizontal lines.
I tried with dynamic blocks but with no luck, maybe the solution is with a grid with a fixed number
of rows and columns (I should make it the maximum size that can be requested) and with parametric constraints.
Or use Xdata but the thing is perhaps more complicated.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Re: Dynamic grid with individually variable horizontal line spacing
« Reply #1 on: September 20, 2021, 08:55:06 AM »
I reformulated my needs and decided to use a dynamic block with a grid of only horizontal Rays and with stretch parameter.
However my question remains interesting for other uses, for example to find the optimal arrangement of the cover panels of a ceiling…  :-)

CodeDing

  • Newt
  • Posts: 51
Re: Dynamic grid with individually variable horizontal line spacing
« Reply #2 on: September 20, 2021, 09:41:39 AM »
Marc'Antonio Alessi,

My suggestion would be to just use a TABLE. Then just adjust cell heights and widths as necessary.

Best,
~DD
~DD
Senior CAD Tech & AI Specialist
Need AutoLisp help?
Try my custom GPT 'AutoLISP Ace'

BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
Re: Dynamic grid with individually variable horizontal line spacing
« Reply #3 on: September 20, 2021, 09:39:47 PM »
Why not just draw grid 1st principles. Use a smart multiple in string. Then would be any combo.

Ver 100x2,150x3,200,100,150
hor 90x5

Would not be hard to do.
A man who never made a mistake never made anything

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Re: Dynamic grid with individually variable horizontal line spacing
« Reply #4 on: September 21, 2021, 03:17:39 AM »
Marc'Antonio Alessi,

My suggestion would be to just use a TABLE. Then just adjust cell heights and widths as necessary.

Best,
~DD
I have already tried to create a table style with margins 0 and text height 1 but there is no possibility to stretch by steps (eg. 100-150-200), then dynamic stretching is much more practical. Thanks  :-)

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Re: Dynamic grid with individually variable horizontal line spacing
« Reply #5 on: September 21, 2021, 03:22:54 AM »
Why not just draw grid 1st principles. Use a smart multiple in string. Then would be any combo.

Ver 100x2,150x3,200,100,150
hor 90x5

Would not be hard to do.
I need to have the possibility of stretching to evaluate the position of the lines above the Layout, it is used to position the ceiling panels in order to put as much long panels as possible and have the least number of cuts.  Thanks.     :-)