.NET

Reply
Distinguished Contributor
wesbird
Posts: 351
Registered: ‎12-05-2003
Message 1 of 4 (166 Views)

how to create a XRef in .NET?

166 Views, 3 Replies
08-03-2006 07:52 AM
Hi,
Is anyone has a sample of creating a xref in .net (C# or VB.NET) ?



Thank you
Wes
*Paul Richardson
Message 2 of 4 (166 Views)

Re: how to create a XRef in .NET?

08-05-2006 12:32 PM in reply to: wesbird
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
*Paul Richardson
Message 3 of 4 (166 Views)

Re: how to create a XRef in .NET?

08-05-2006 04:32 PM in reply to: wesbird
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
Distinguished Contributor
mohnston
Posts: 184
Registered: ‎09-22-2006
Message 4 of 4 (166 Views)

Re: how to create a XRef in .NET?

05-01-2007 08:40 PM in reply to: wesbird
Have you noticed that the xref doesn't show up in the External References palette list?

Has anyone else seen this?
CAD Programming Solutions
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.