Over 1.104.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
Discussion forum
?CAD discussions, advices, exchange of experience
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply
|
| Author | |
eliasabuhani
Newbie
Joined: 13.Sep.2021 Location: Israel Using: AutoCAD2022 Status: Offline Points: 3 |
Topic: InsertC LISP - Automatic numbering of blocksPosted: 13.Sep.2021 at 17:43 |
|
Hello guys,
using the insertc command can auto count attributes within a block. InsCopt command sets the increment, precision and att.number options. I use the insertc:AttNo Lisp variable to assign a different attribute number (in order), e.g. the 2rd However, when setting the 2nd attribute number, the 1st one remains with its default value. I need to define the 1st attribute as a constant value (and not to set the default value to it) - how can it be done? e.g. a block contains 2 attributes: num1 / num2 - I need to define num1 to E11 and num2 to 1, 2, 3, 4... Thanks, |
|
|
Elias Abu Hani
|
|
![]() |
|
Vladimir Michl
Moderator Group
Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2141 |
Posted: 13.Sep.2021 at 22:28 |
|
InsertC doesn't work this way - it just touches the "counted" attributes, not the other ones (if any).
You might be able to switch the Att number for a dual-run and use a zero increment to keep the other attribute constant but it won't be convenient. It is probably a too specialized method to add it to the general-use InsertC tool.
|
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
eliasabuhani
Newbie
Joined: 13.Sep.2021 Location: Israel Using: AutoCAD2022 Status: Offline Points: 3 |
Posted: 14.Sep.2021 at 06:18 |
|
Hello Vladimir,
when setting the attribute number to 2, it really counts it but it does touch the others by setting them to their default values. If there is a way where the lisp only touches the wanted attribute and keeping the others on their current values? or by asking which value to define for the other attribute. In addition, how can it be possible to switch the attribute for a dual-run? Thanks,
|
|
|
Elias Abu Hani
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,109 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)


InsertC LISP - Automatic numbering of blocks
Topic Options


