AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating mpolygon fails with lisp

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
t_telintelo
590 Views, 2 Replies

Creating mpolygon fails with lisp

Hi
I am trying to import a GML file via lisp. The problem is the entmake functie returns nil.
What is wrong with this entitie-list I can't find it. Is there a missing list perhaps??
Command: (entmake entlijst_polygon)
nil
Command: !entlijst_polygon
((0 . "MPOLYGON") (8 . "Perceel") (67 . 0) (70 . 1) (10 0.0 0.0 0.0) (2 . "_SOLID")
(71 . 1) (91 . 1) (92 . 2) (73 . 0) (72 . 0) (93 . 5) (10 -8.755 8.33 0.0)
(10 2.545 -8.33 0.0) (10 8.755 -4.4 0.0) (10 2.685 -0.24 0.0) (10 -8.755 8.33 0.0)
(76 . 1) (63 . 256) (11 232719.0 461766.0 0.0) (99 . 0) (450 . 0) (451 . 0) (460 . 0.0)
(461 . 0.0) (452 . 0) (462 . 0.0) (453 . 0) (470 . "")
)
2 REPLIES 2
Message 2 of 3

Hi,

 

And if you add code 100 and 210?

Your exemple modified:

(entmake
'(
(0 . "MPOLYGON")
(100 . "AcDbEntity")
(8 . "Perceel")
(67 . 0)
(100 . "AcDbMPolygon")
(70 . 1)
(10 0.0 0.0 0.0)
(210 0.0 0.0 1.0)
(2 . "_SOLID")
(71 . 1)
(91 . 1)
(92 . 2)
(73 . 0)
(72 . 0)
(93 . 5)
(10 -8.755 8.33 0.0)
(10 2.545 -8.33 0.0)
(10 8.755 -4.4 0.0)
(10 2.685 -0.24 0.0)
(10 -8.755 8.33 0.0)
(76 . 1)
(63 . 256)
(11 232719.0 461766.0 0.0)
(99 . 0)
(450 . 0)
(451 . 0)
(460 . 0.0)
(461 . 0.0)
(452 . 0)
(462 . 0.0)
(453 . 0)
(470 . "")
)
)
Message 3 of 3

Hello

Thanks for jour reaction. You where right code 100 was the problem. 

 

gr. Theo

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


AutoCAD Beta