Author Topic: Check is AttributeReference instance of concrete AttributeDefinition?  (Read 2553 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Hello all.

I have next instances:

1. BlockTableRecord
2. BlockReference
3. AttributeDefinition
4. AttributeReference

How can I check is AttributeReference instance of concrete AttributeDefinition?

I look next properties of AttributeReference object: ObjectId, OwnerId, BlockId, but it's not help me (it's ID's for other objects)...

kpblc

  • Bull Frog
  • Posts: 396
Maybe TagString?
Sorry for my English.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Maybe TagString?
No it's bad answer. Such property is absent. There is property "Tag". But AttributeDefinition in other BlockTableRecord can have same "Tag" value.

kpblc

  • Bull Frog
  • Posts: 396
Da you really think it's right? If you'll try to change attribute values (with same tags), you'll get window with red strings (unique tags have black color).
I think this situation have to be changed.
---
P.S. But! Can you get all attributes by order of them?
Sorry for my English.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Da you really think it's right?

look screen:



I select 2 instances of different blocks. Look attrib. name in property window: names same.

If you'll try to change attribute values (with same tags), you'll get window with red strings (unique tags have black color).
I think this situation have to be changed.

I don't need change - I need filter.

Quote
P.S. But! Can you get all attributes by order of them?
Yes I can.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
question closed (I was inattentive).



result: