Gustavo,
The easy way to add an object to a block definition is use refedit. It translates the
new object to the object coordinate system (OCS) of the block based on whatever
instance of the block you choose to refedit.
To do it programmatically, without using refedit, you would have to replicate that
action. It ain't easy. It involves calculation of an inverse transformation matrix,
WCS to OCS. That matrix can be passed to the TransformBy method to transform the
object.
Joe Burke
"Gustavo_Guidi" wrote in message
news:5148504@discussion.autodesk.com...
I answear my self with something I found, but what I need now is instead of
CREATE an entity with ENTMAKE to add to the block an existing (already
drawn) entity ?
Thanks
(entmake '((0 . "block") (2 . "db") (70 . 2) (10 0.0 0.0 0.0) (8 .
"0") ) )
(entmake '((0 . "ATTDEF") (10 -0.21503 0.0563637 0.0)
(40 . 0.104167) (1 . "-") (50 . 0.0) (41 . 0.85) (51 . 0.0)
(7 . "ROMANS") (71 . 0) (72 . 1) (11 0.0 0.108447 0.0)
(210 0.0 0.0 1.0) (3 . "DETAIL NUMBER") (2 . "DETAIL")
(73 . 0) (74 . 2) (70 . 0) (8 . "0") ) )
(entmake '((0 . "LINE") (10 0.21875 0.0 0.0)
(11 -0.21875 0.0 0.0) (8 . "0" ) ) )
(entmake '((0 . "ENDBLK")))
"Gustavo_Guidi" escribió en el mensaje
news:5148510@discussion.autodesk.com...
Is it any example to see how to create a block with attribute form lisp?
Thanks