Author Topic: Set common EffectiveName and "unnamed" Name in blocks  (Read 351 times)

0 Members and 1 Guest are viewing this topic.

Pepe

  • Newt
  • Posts: 87
Set common EffectiveName and "unnamed" Name in blocks
« on: April 05, 2024, 07:14:30 AM »
I'd like to set a common EffectiveName for a block created, but set the Name property as an unnamed block ("*Unnn") in the inserted block .

Just as dynamic blocks work.

Although I tried it in several ways, I can't find a solution.

Anybody knows how to do that?

*Edited...


« Last Edit: April 05, 2024, 07:23:20 AM by Pepe »

57gmc

  • Bull Frog
  • Posts: 366
Re: Set common EffectiveName and "unnamed" Name in blocks
« Reply #1 on: April 05, 2024, 04:40:59 PM »
The EffectiveName property only applies to dynamic blocks. You can't assign *U blocks, AutoCAD does that automatically when you change the parameters of a dynamic block. Besides, if you started messing with the 'system', you might interfere with AutoCAD's naming system and cause errors. Why are you trying to do that? What is your goal?

Pepe

  • Newt
  • Posts: 87
Re: Set common EffectiveName and "unnamed" Name in blocks
« Reply #2 on: April 08, 2024, 10:38:21 AM »
Thank you, 57gmc!

I've meant to generate a block whose class is always the same, but in different shapes. For some reasons, I'm not interested in using dynamic blocks parameters for it.

I'll try it using XData or a dictionary then for its identification.

57gmc

  • Bull Frog
  • Posts: 366
Re: Set common EffectiveName and "unnamed" Name in blocks
« Reply #3 on: April 08, 2024, 10:51:30 AM »
What reasons?

A block can still have only one name for specific content. Instead, you might try using a hierarchical coded naming system for a set of like blocks. For example "Series999-Model999".