Message 1 of 3
Inserting block with orientation - UCS question
Not applicable
07-28-2005
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I used to insert and orient blocks in AutoCAD by changing the UCS and then
using the insert command. How is this done using .NET?
In C#, I use the following method (this isn't all of the code, but you get
the idea) to insert the block:
ObjectId idBTR = doc.Database.Insert("My Block Name",db,true);
BlockReference bref = new BlockReference(location, idBTR);
btr.AppendEntity(bref);
Now I just need to figure out how to get it oriented properly (I've got two
direction vectors that specify its orientation). Is this done by setting a
UCS before calling the Insert method?
Any rough guidelines on how to orient blocks using .NET are greatly
appreciated.
Thanks!
-Carlos
I used to insert and orient blocks in AutoCAD by changing the UCS and then
using the insert command. How is this done using .NET?
In C#, I use the following method (this isn't all of the code, but you get
the idea) to insert the block:
ObjectId idBTR = doc.Database.Insert("My Block Name",db,true);
BlockReference bref = new BlockReference(location, idBTR);
btr.AppendEntity(bref);
Now I just need to figure out how to get it oriented properly (I've got two
direction vectors that specify its orientation). Is this done by setting a
UCS before calling the Insert method?
Any rough guidelines on how to orient blocks using .NET are greatly
appreciated.
Thanks!
-Carlos