Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Numbering inside an Array

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
Anonymous
6721 Views, 7 Replies

Numbering inside an Array

Anonymous
Not applicable

I am currently trying to come up with a way to number objects in and Array.

 

Basically I was wondering if I could take a Block and use an Array to make multiple of the object, of course, but also have a field/attribute within the block count up. I was thinking it would work much like Excel. Right now I have just a Block with an Array that works fine for what I use it for. However, I have to manually correct the numbers in the drawing, which has lead to occasional mistakes.

 

I have had no luck in trying to get something to work. If someone could lead me in the right direction, suggestions or examples would be greatly appreciated!

 

0 Likes

Numbering inside an Array

I am currently trying to come up with a way to number objects in and Array.

 

Basically I was wondering if I could take a Block and use an Array to make multiple of the object, of course, but also have a field/attribute within the block count up. I was thinking it would work much like Excel. Right now I have just a Block with an Array that works fine for what I use it for. However, I have to manually correct the numbers in the drawing, which has lead to occasional mistakes.

 

I have had no luck in trying to get something to work. If someone could lead me in the right direction, suggestions or examples would be greatly appreciated!

 

7 REPLIES 7
Message 2 of 8
john.vellek
in reply to: Anonymous

john.vellek
Alumni
Alumni

Hi colecollegemoney,

 

This is interesting - can you attach a copy of your drawing with the array in it? There are numerous block attribute and text increment LISP routines out there but I am unsure how well they will work in this situation.  I would be happy to take a look though and perhaps I can make some suggestions.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes

Hi colecollegemoney,

 

This is interesting - can you attach a copy of your drawing with the array in it? There are numerous block attribute and text increment LISP routines out there but I am unsure how well they will work in this situation.  I would be happy to take a look though and perhaps I can make some suggestions.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 3 of 8
Anonymous
in reply to: john.vellek

Anonymous
Not applicable

Hello John;

 

Thank you for the reply. I have attached a file that contains an example of what I'm planning to us this for. The block, in the drawing, uses a linear parameter so a user can drag the right grip to array the object. I have not put in an attribute or text block, because I don't know which I would need. I would however just like to have it in the center of the block.

 

For the text, I would like for it work with letters and symbols too if that's possible.

0 Likes

Hello John;

 

Thank you for the reply. I have attached a file that contains an example of what I'm planning to us this for. The block, in the drawing, uses a linear parameter so a user can drag the right grip to array the object. I have not put in an attribute or text block, because I don't know which I would need. I would however just like to have it in the center of the block.

 

For the text, I would like for it work with letters and symbols too if that's possible.

Message 4 of 8
john.vellek
in reply to: Anonymous

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Since this is actually a Dynamic Block issue I suggest that we move the thread to that forum.

 

In assigning an attribute inside your block, there is no association with the polyline. That means when you actually array the object, you would only end up with one attribute.

 

With that said, if I nest a block inside the existing block, the attributes do show up but do not increment.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes

Hi @Anonymous,

 

Since this is actually a Dynamic Block issue I suggest that we move the thread to that forum.

 

In assigning an attribute inside your block, there is no association with the polyline. That means when you actually array the object, you would only end up with one attribute.

 

With that said, if I nest a block inside the existing block, the attributes do show up but do not increment.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 5 of 8
Anonymous
in reply to: john.vellek

Anonymous
Not applicable

Hello John,

 

Ok, I have moved this thread over to the Dynamic Block forum.

 

I have not work with nested blocks before, but I will look into them. Also, in your previous reply, you mentioned increment LISP routines. I have glanced over some examples of them, and I think they can solve my problem.

 

Thank you again for the ideas.

0 Likes

Hello John,

 

Ok, I have moved this thread over to the Dynamic Block forum.

 

I have not work with nested blocks before, but I will look into them. Also, in your previous reply, you mentioned increment LISP routines. I have glanced over some examples of them, and I think they can solve my problem.

 

Thank you again for the ideas.

Message 6 of 8
jarredmonday
in reply to: Anonymous

jarredmonday
Collaborator
Collaborator
Accepted solution

Here is a great thread with a couple blocks of what you're asking about.

 

http://forums.autodesk.com/t5/dynamic-blocks/auto-number-array-in-dynamic-block/m-p/5288535/highligh...

Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘

Here is a great thread with a couple blocks of what you're asking about.

 

http://forums.autodesk.com/t5/dynamic-blocks/auto-number-array-in-dynamic-block/m-p/5288535/highligh...

Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Message 7 of 8
john.vellek
in reply to: jarredmonday

john.vellek
Alumni
Alumni

Hi @jarredmonday,

 

Nice link and great formula to identify the position!


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes

Hi @jarredmonday,

 

Nice link and great formula to identify the position!


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 8 of 8
Anonymous
in reply to: john.vellek

Anonymous
Not applicable
Accepted solution

 

I found a great lsp that does exactly what I need. It wasn't that complicated to set up and get working, though on one machine it did have trouble running the actual command inside of autoCAD, it kept giving a "missing base.dcl" warning.

 

It works great in that if you have multiple blocks inside a drawing, like we do, the lsp brings up a GUI window and it has a drop down where you can select the specific block you want to array. Also, if your block has multiple attributes, you can choose the one you want to increment in the array.

 

It works great, does what it's supposed to, has a clean and well thought out interface, and is easy to learn if your know a little something about autoCAD.

 

Here is the link to download the lsp - http://www.mediafire.com/download/yw02edj694j9enn/NumInc+NUMBERING.lsp

 

- Cole

0 Likes

 

I found a great lsp that does exactly what I need. It wasn't that complicated to set up and get working, though on one machine it did have trouble running the actual command inside of autoCAD, it kept giving a "missing base.dcl" warning.

 

It works great in that if you have multiple blocks inside a drawing, like we do, the lsp brings up a GUI window and it has a drop down where you can select the specific block you want to array. Also, if your block has multiple attributes, you can choose the one you want to increment in the array.

 

It works great, does what it's supposed to, has a clean and well thought out interface, and is easy to learn if your know a little something about autoCAD.

 

Here is the link to download the lsp - http://www.mediafire.com/download/yw02edj694j9enn/NumInc+NUMBERING.lsp

 

- Cole

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report