Jump to content

Dynamic Block with Autonumbering


Recommended Posts

Posted

I am trying to create a dynamic titleblock for several projects so i dont have to keep making the same one over and over. However the only problem i have is numbering the markers on the top of the title block. By using array i can create numbers in the block to array as i stretch the block however i can get them to ascend.. I was wondering if there was any way to do this, it would save alot of time instead of arraying the numbers then changing them manually or by the express tool autonumber. Check out the cad file, some projects can be over 200 inches so this would definatly save time

Titleblock.dwg

Posted

Welcome and congrats on your first post.

 

Is it possible to use a field that is associated to the dynamic property of the title block? so as you stretch it the numbers are modified? If you dont get an answer back soon, when I have some time I'll take a look at your titleblock and see if I can better understand what you are asking for.

Posted (edited)

Are you using these markers as grid references if so search for that "grid" its been done before, else pretty simple lisp ask length width how many text same with alpha characters.

 

A block would have a fixed number of labelled attributes which could up date, stretching the block would not add more labels unless some one can show how a field would display or not depending on scale factor/length.

 

Something like this (not tested)

(setq pt1 (getpoint "\npick a point"))
(setq dist (getreal "\nenter distance"))
(setq howmany (getint "\nenter number required"))
(setq x 1)
(setvar "osmode" 0)
(repeat howmany
(setq ans (rtos x ))
(command "text" pt1 2.5 0 ans )
(setq pt1 (polar pt1 0.0 dist))
(setq x (+ x 1))
) 
(princ)

Edited by BIGAL
oops ang dist

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...