11/16/2020 0 Comments Ucs Vs Wcs
If you continue browsing the site, you agree to the use of cookies on this website.If you wish to opt out, please close your SlideShare account.Yet, many companies struggle with where each technology option fits into their distribution strategy.
Ucs Vs Wcs How To Compare TheIn this presentation, you will learn: how to compare the functionality available in each system; what each system does best and why; how to determine if one or both systems are right for your operation; how to integrate both systems to maximize performance.WMS Do Not provide a GUI (ACAD) layout of your automation system. WCS Do not hard allocate inventory in reserve or forward pick locations. WCS Do Not interface with your ERP (typically, there are exceptions). WCS Do not support extensive cycle counting and physical inventory. WCS Do not support Transportation Planning and Shipping Execution. They look straightforward but actually not lying in the fact that most of the system variable values are expressed in UCS but the view twist angle is not, instead, in WCS. The same code and command works not only for viewports in model space but also viewports in paper space in case they are activated. The second approach throws away those AutoCAD system variables, instead uses the ViewportTableRecord to retrieve the current model viewport information. The code does not work with viewports in model space as the first few lines of code indicate. The reason behind has been discussed both in this post and previous. We dont have to transform the view direction (Viewport.ViewDirection), view center (Viewport.ViewCenter), view target (Viewport.ViewTarget) from UCS or DCS to WCS since these properties of the Viewport object are already expressed in WCS. The rule of thumb is that almost all geometry properties of AutoCAD.NET classes are expressed in WCS such as point, vector and radius. There are a few exceptions, of course, one of which is the ViewportTableRecord.CenterPoint property we demonstrated in the previous post, and another is the Viewport.CenterPoint we are going to talk about below. The view target (represented by the Viewport.ViewTarget property) instead of the view center is used to take part in the transformation matrix creation. The Viewport.CenterPoint here indicates the center of the viewport entity in the paper space and it is expressed in the paper space coordinate system (PSCS, or PSDCS) which is 2D. The weirdness is that its data type is Point3d rather than Point2d. It is not our concern anyway, and we dont use it in the code. We should not assume the view center is always at the origin point. That explains why we offset the Viewport.ViewCenter to get the corners of the window on the DCS. The Editor.ActiveViewportId returns the currentactive viewport in either model space or paper space, but its object type will be different, Viewport in paper space but ViewportTableRecord in model space as demonstrated. The Viewport.ViewHeight indicates the height of the view, expressed in the model space unit; however the Viewport.Height is the height of the viewport entity in the paper space, thus expressed in the paper space unit. There lacks of the Viewport.ViewWidth property, so we have to calculate it out from the Viewport.ViewHeight and the height to width ratio which can be got from the Viewport.Height and Viewport.Width. Others are pretty much the same as in the first and second approach such as the transformation matrix buildup from DCS to WCS and the polyline creation. Last but not least, the MgdAcApplication.DocumentManager.MdiActiveDocument.Database here is used instead of the HostApplicationServices.WorkingDatabase as is generally used to represent the current working database. Otherwise, a weird exception eNotFromThisDocument would occur The good and nice result will be always got again, regardless of WCSUCS, Plan or Isometric View, Twisted or not. By the way, something similar to the methods as presented recently might be introduced somewhere on web, but they might not address all of these aspects well enough. In case a circle was drawn there, please change it to a rectangle and try again; in case only WCS was used to test it, please use a UCS instead; in case no twist at all for the view, please twist it a bit and see what happens again. In case only model space viewports were tried there, please try the same in a paper space viewport. People will finally figure why the recent posts are very necessary.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |