Here is actual class I tested with. It includes one overloaded
method so you can xref at the origin or give coodinates. Could
someone please look at this and make sure I'm not giving him
wrong info. One note..I shouldn't have use the name "AttachXref"
which is the the managed method name.
Thanks,
Paul
"Paul Richardson"
wrote in message
news:5260036@discussion.autodesk.com...
This works, but I don't know if it the best way.
Maybe somebody will comment.
[code]
Point3d refPoint = new Point3d(0.0, 0.0, 0.0);
ObjectId xrefId = db.AttachXref(dwgPath, blkName);
BlockReference br = new BlockReference(refPoint, xrefId);
[/code]
wrote in message news:5257781@discussion.autodesk.com...
Hi,
Is anyone has a sample of creating a xref in .net (C# or VB.NET) ?
Thank you
Wes