Jozi68 Posted July 16, 2009 Posted July 16, 2009 Hi All, I'm using vb.net to write a DLL that I can load with netload. How can I set the drawing's UCS to world in VB? All suggestions are appreciated. Jozi68 Quote
Jozi68 Posted July 23, 2009 Author Posted July 23, 2009 I would also like to change UCSFollow to 0. Anyone? Quote
Jozi68 Posted September 21, 2009 Author Posted September 21, 2009 I have heard there is a way to send a command to your drawing. Perhaps something like that could work? Quote
SEANT Posted September 21, 2009 Posted September 21, 2009 Coordinate systems are associated with viewports. So, if a viewport were aquired (via a transaction with Editor.ActiveViewportId, perhaps) then it’s coordinate system could be changed with Viewport.SetUcsToWorld. Quote
Jozi68 Posted September 21, 2009 Author Posted September 21, 2009 I am not using viewports at the moment, but not all drawings are set to ucs world. Surely there should be a way to change a drawing to ucs world (while in model)? Quote
gile Posted September 21, 2009 Posted September 21, 2009 Hi, This sould work for the current viewport (C# code, I let you translate) Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; ed.CurrentUserCoordinateSystem = new Matrix3d(new double[16]{ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0}); Quote
SEANT Posted September 21, 2009 Posted September 21, 2009 I’ve got to plead guilty to giving bad advice with the Viewport.SetUcsToWorld recommendation. Quite frankly, I can’t find a scenario where that method works as advertised. If it does perform some task, it isn’t what I assumed it would be. Quote
Jozi68 Posted September 22, 2009 Author Posted September 22, 2009 Thanks gile, it seems to work. Now I just need a way to make sure the user is actually in model (NOT paper). No problem Seant, you've already helped me more than anyone else. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.