Hello...
I'm desperate...
I just need to insert a drawing or external block into my current drawing.
Something to easy with Visual Lisp.
(defun c:InsertBlock (/)
(setq insertionPoint (getpoint "Insertion Point"))
(setq XFactor 1)
(setq YFactor 1)
(setq Rotation 0)
(command "-insert" "c:\\blocks\block.dwg" insertionPoint XFactor Yfactor Rotation)
)
Why in .Net is so difficult to me ?....
Please forgive me.
Thanks in advance.
Look at this blog post for how to pull the external dwg into the current database as a Block definition.
And this post on how to jig a block with attributes.
You can create a blockreference in the database without jigging, but jigging is how you let the user see what he is inserting when you prompt for the insertion point.