CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 3714
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage 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.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz.

InsertC LISP - Automatic numbering of blocks

 Post Reply Post Reply
Author
eliasabuhani View Drop Down
Newbie
Newbie


Joined: 13.Sep.2021
Location: Israel
Using: AutoCAD2022
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote eliasabuhani Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 1842
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vladimir Michl Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
eliasabuhani View Drop Down
Newbie
Newbie


Joined: 13.Sep.2021
Location: Israel
Using: AutoCAD2022
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote eliasabuhani Quote  Post ReplyReply Direct Link To This Post 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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,063 seconds.