ACadSharp icon indicating copy to clipboard operation
ACadSharp copied to clipboard

System variables defaults and ranges

Open DomCR opened this issue 2 months ago • 5 comments

Hello @DomCR. With the changes made in the commit 307819c34cc5f48f3e196bfdd24f451ea5080e46, the Autocad Application can open the created file as it should.

But in BricsCad, there is still a warning: Image

Running the RECOVER command, on BricsCad, it makes a valid file, but the image object seems to be removed.

Command:

RECOVER

BricsCad Prompt:

Recover .dwg file.
Name: .dwg file
Value: Object improperly read: <AcDbRasterImage> (3E)
 Previous error: .dwg file needs recovery
Replaced by: Removed

Total errors found during recover: 1.
Audit recovered Database.
Name: Database header
Value: System Variable "TEXTSIZE"
Validation: Not >0
Replaced by: Set to 2.5

Name: Database header
Value: System Variable "CMLSTYLE"
Validation: Invalid
Replaced by: Standard

Name: Database header
Value: System Variable "PSOLWIDTH"
Validation: Not 2.22507e-308..1.79769e+308
Replaced by: Set to 5

Name: Database header
Value: System Variable "TILEMODELIGHTSYNCH"
Validation: Not 0..1
Replaced by: Set to 1

Name: Database header
Value: System Variable "LENSLENGTH"
Validation: Not >0
Replaced by: Set to 50

Name: Database header
Value: System Variable "3DDWFPREC"
Validation: Not 1..6
Replaced by: Set to 2

Name: AcDbTextStyleTableRecord(12)
Value: Is not externally dependent on an Xref, but XRefBlockId ((4)) is not Null
Validation: Invalid
Replaced by: Set to Null

Name: AcDbTextStyleTableRecord(12)
Value: Last height 0
Validation: Not >0
Replaced by: Set to 2.5

Name: AcDbDictionary(2D)
Value: AcDbDictionary (ACAD_FIELDLIST)
Validation: AcDbFieldList
Replaced by: Removed

Name: AcDbDictionary(A)
Value: Entry object (2D)
Validation: Invalid
Replaced by: Removed

Name: AcDbLayout(36)
Value: Layout has invalid ModelType flag
Validation: Invalid
Replaced by: Set to True

Name: AcDbMlineStyle(15)
Value: Segments amount 0
Validation: Not 1..16
Replaced by: Set to 1

67 objects audited
Total errors found during audit 13, fixed 13

Can you take a look at this? Or the goal would be just Autocad compatibility?

Originally posted by @thaiguer in #702

DomCR avatar Oct 21 '25 05:10 DomCR