Hi!
I want to convert coordinates from 0,0,0 UCS to WCS.
Dim Inblock(2) As Double
Inblock(0) = 0 : Inblock(1) = 0 : Inblock(2) = 0
Is this possible.
Avinash
![]() |
|
![]() |
|
![]() |
|
![]() |
Hi!
I want to convert coordinates from 0,0,0 UCS to WCS.
Dim Inblock(2) As Double
Inblock(0) = 0 : Inblock(1) = 0 : Inblock(2) = 0
Is this possible.
Avinash
All geometry is stored to the drawing in WCS.
Any new Point2d/Point3d will be expressed in WCS coordinates, whereas Editor.GetPoint() always returns UCS, unless you transform each into UCS or WCS respectively:
https://spiderinnet1.typepad.com/blo...cs-to-wcs.html
Code:Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; PromptPointResult ppr = ed.GetPoint("\nSpecify base point: "); if (ppr.Status != PromptStatus.OK) return; Point3d curPt = ppr.Value.TransformBy(ed.CurrentUserCoordinateSystem);
Last edited by BlackBox; 2021-05-13 at 08:25 PM.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Hi!
I am developing Standalone application in vb.net. I have a two type of points 1) coordinates 2) polar points like...
Dim AngPnt(2) As Double
AngPnt(0) = 18.5 : AngPnt(1) = 106 : AngPnt(2) = 0
and
Dim Pt1 as object
Pt1 = AcadDoc.Utility.PolarPoint(Pt6, West, LastDist)
like that I want to change as per autocad current ucs point. how to do?
Avinash