← All bug reports

FS#2553Attributes created from invisible attribute definitions are visible

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.29.4
Operating system
Windows 7
Reported
2024-03-19 by CVH
Closed
2024-03-22 by andrew
Votes
1

Andrew,

It seems that Attribute Definitions are created by default with Invisible = Yes
I can't control this property on creation.
I can select the newly created Attribute Definition and toggle the flag.

Consequence when not updating this flag for each new Attribute Definition is that inserted Block Attributes disappear on synchronizing.
See attached files.

The default Invisible = Yes setting is not retained on save/reload.
(You will probably discover these flags to be 'No' in the attached files)
Synchronizing after a reload has no longer the mentioned consequence.

On inserting a Block Reference based on a Block with Attribute Definitions the Invisible flag of new Block Attributes is always 'No'.
InsertBlock.js nor InsertBlockItem.js consider the Attribute Definition Invisible flag status when creating and inserting a new RAttributeEntity object.
e.g.: InsertBlock.js L184-L206

IMHO:
- Invisible = Yes on creation is not the best default for new Attribute Definitions.
- Not retaining this flag on save/reload is probably not intended.
- Disregarding the Attribute Definitions Invisible flag on block insertion seems incorrect.

Related forum topic:
https://qcad.org/rsforum/viewtopic.php?f=32&t=10714

Regards,
CVH

Comments (2)

CVH 2024-03-19

After spitting trough code and commits:
Flag status for new Attributes should have been fixed on Oct 12, 2015 ... FS#1277

And that of Attribute Definitions on Oct 14, 2021 ...Commit: add invisible flag

It should thus be implemented in my older 3.27.6 (2022/05/18) installation.

Included a screen capture after creating a new Attribute Definition (3.29.4)

andrew 2024-03-22

I couldn't reproduce "Invisible = Yes on creation" or "Not retaining this flag on save/reload" here.

I can confirm "Disregarding the Attribute Definitions Invisible flag on block insertion".

Closure comment

Partially not reproducible