libredwg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libredwg] Test Suite


From: guruprasad rane
Subject: [libredwg] Test Suite
Date: Wed, 2 Nov 2011 22:16:45 +0530

Hi All

Almost a year back I worked little on testsuite for LibreDwg. Is there any new test suite now?

If not then, I had suggested that we can have text file for each dwg file in the suite. This text file will contain information regarding the dwg file and the objects within the dwg file. Using LibreDwg we can read the dwg dile and cross check with the text file weather the information we read using LibreDwg is correct. But the problem was how to create textfiles with necessary information from dwg file. Today I stumbled upon a VisualLisp code which dumps information regarding the objects. The output comes like this below


((-1 . <Entity name: 7ffffccf810>) (0 . LINE) (330 . <Entity name: 7ffffccd9f0>) (5 . 151) (100 . AcDbEntity) (67 . 0) (410 . Model) (8 . 0) (62 . 173) (420 . 6894795) (100 . AcDbLine) (10 40.2072 45.5452 0.0) (11 60.3605 18.2512 0.0) (210 0.0 0.0 1.0))
; IAcadLine: AutoCAD Line Interface
; Property values:
;   Angle (RO) = 5.34841
;   Application (RO) = #<VLA-OBJECT IAcadApplication 00000000012348d0>
;   Delta (RO) = (20.1533 -27.294 0.0)
;   Document (RO) = #<VLA-OBJECT IAcadDocument 000000001f581c00>
;   EndPoint = (60.3605 18.2512 0.0)
;   Handle (RO) = "151"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 000000001f7c45a8>
;   Layer = "0"
;   Length (RO) = 33.9281
;   Linetype = "ByLayer"
;   LinetypeScale = 1.0
;   Lineweight = -1
;   Material = "ByLayer"
;   Normal = (0.0 0.0 1.0)
;   ObjectID (RO) = 44
;   ObjectID32 (RO) = 44
;   ObjectName (RO) = "AcDbLine"
;   OwnerID (RO) = 43
;   OwnerID32 (RO) = 43
;   PlotStyleName = "Color_173"
;   StartPoint = (40.2072 45.5452 0.0)
;   Thickness = 0.0
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 000000001f7c4540>
;   Visible = -1

This info is regarding a single line.
Any one thinks that we can create a good test suite with this approach?

Regards
Guruprasad Rane

reply via email to

[Prev in Thread] Current Thread [Next in Thread]