Change of numbering based on Attribute value within a dynamic block

Change of numbering based on Attribute value within a dynamic block

Anonymous
Not applicable
887 Views
4 Replies
Message 1 of 5

Change of numbering based on Attribute value within a dynamic block

Anonymous
Not applicable

Hello,

 

I want to know if it's possible to make the numbering change in a dynamic block based on an attribute value which i assign to each of my dynamic block?

For example i use a dynamic block and i set its attribute PageNumber which i created to 1 and i want that a set of values would change based on the page number in this case i want my wiring lines ends to show /2.9.
Screen example of what i mean:
Capture.JPG

I did this with a help of a formula in which i've inserted a field with a attribute value, but this works only once and doesn't update nor changes when i add in same dynamic blocks. I've found that i could use BlockPlaceHolder properties, but i can't add any custom properties there.

 

Maybe anyone could help me?

0 Likes
888 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor

You can use a 'user parameter' instead of an attribute to house your changing value.  Then use appropriate formula fields to derive the appropriate other values.  The user parameter value can be updated in properties.  Be sure to use regen after updating the user parameter so that the fields update.  

0 Likes
Message 3 of 5

Anonymous
Not applicable

Where can i create custom user parameters? I'm using Autocad LT

0 Likes
Message 4 of 5

Libbya
Mentor
Mentor

I don't know LT.  I haven't used it in a decade.  I don't even know if it supports user parameters.  Does it have the 'Parameter's Manager'?  What about a 'Block Properties Table'?  The block properties table gives the option to create user parameters.

0 Likes
Message 5 of 5

Emmsleys
Alumni
Alumni

Hello @Anonymous, 

 

What AutoCAD LT release are you using?

 

Have you seen this article: To Edit the Program Parameters (PGP) File

 

  1. Do one of the following:
      • Click Manage tab Customization panel Edit Aliases (flyout) Edit Aliases. Find
      • At the Command prompt, enter ai_editcustfile and press Enter. Then enter acad.pgp (AutoCAD) or acadlt.pgp (AutoCAD LT), and press Enter.
    Note: The default PGP file can also be opened by launching Windows Explorer or File Explorer, and navigating to your user folder and then double-clicking the Application Data or AppData folder. Continue to navigate to Roaming\Autodesk\<product name>\<release>\<language>\Support. Double-click acad.pgp (or acadlt.pgp for AutoCAD LT) to edit the file. If prompted for an application to use, select NotePad.
  2. In the text editor, add your new command aliases to the bottom of the file. Save the PGP file after you make the desired edits.
  3. In AutoCAD or the AutoCAD-based product, at the Command prompt, enter reinit and press Enter.
  4. In the Re-initialization dialog box, click PGP file. Click OK.
  5. Test your new command alias and edit the PGP file as needed.


Sarah Emmsley
Technical Support Specialist

0 Likes