Discussion forum
CAD discussion |
Please abide by the rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
InsertC LISP - Automatic numbering of blocks |
Post Reply |
Author | |
eliasabuhani
Newbie Joined: 13.Sep.2021 Location: Israel Using: AutoCAD2022 Status: Offline Points: 3 |
Topic: InsertC LISP - Automatic numbering of blocks Posted: 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: 2018 |
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 Systems - arkance-systems.cz - Autodesk reseller |
|
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,317 seconds.