Message 1 of 2
Difficulty understanding UCS behavior.

Not applicable
03-20-2003
04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is what I did (See code Below)
On the bottom when I look at the values of .Origin(0 to 2) it gives me
(-450,-350,1450)
But nothing appends when I change the origin 0,0,0
Is there something missing in my code?
Thanks.
basePt(0) = Section
basePt(1) = ptCad(0)
basePt(2) = ptCad(1)
Xaxis(0) = basePt(0)
Xaxis(1) = basePt(1) + 10#
Xaxis(2) = basePt(2)
Yaxis(0) = basePt(0)
Yaxis(1) = basePt(1)
Yaxis(2) = basePt(2) + 10#
Set colUcs = ThisDrawing.UserCoordinateSystems
Set Ucs = colUcs.Add(basePt, Xaxis, Yaxis, "2D_" & Section)
Org = Ucs.origin(0)
Org = Ucs.origin(1)
Org = Ucs.origin(2)
ptCad(0) = 0
ptCad(1) = 0
ptCad(2) = 0
Ucs.origin = ptCad
On the bottom when I look at the values of .Origin(0 to 2) it gives me
(-450,-350,1450)
But nothing appends when I change the origin 0,0,0
Is there something missing in my code?
Thanks.
basePt(0) = Section
basePt(1) = ptCad(0)
basePt(2) = ptCad(1)
Xaxis(0) = basePt(0)
Xaxis(1) = basePt(1) + 10#
Xaxis(2) = basePt(2)
Yaxis(0) = basePt(0)
Yaxis(1) = basePt(1)
Yaxis(2) = basePt(2) + 10#
Set colUcs = ThisDrawing.UserCoordinateSystems
Set Ucs = colUcs.Add(basePt, Xaxis, Yaxis, "2D_" & Section)
Org = Ucs.origin(0)
Org = Ucs.origin(1)
Org = Ucs.origin(2)
ptCad(0) = 0
ptCad(1) = 0
ptCad(2) = 0
Ucs.origin = ptCad