change center of circle after use USC

change center of circle after use USC

xuantientutungXUK6E
Advocate Advocate
1,029 Views
7 Replies
Message 1 of 8

change center of circle after use USC

xuantientutungXUK6E
Advocate
Advocate

hi guys,

i want to change the center of circles to usc cordinate.

but after i change wsc to usc, i use getproperites 'center.... and the point center is still in WSC.

does it anyway to change it to new usc.

hope i can get any suggestions.

thank you.

0 Likes
Accepted solutions (1)
1,030 Views
7 Replies
Replies (7)
Message 2 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

Use the TRANS function

(trans (getpoint)  0 1)

0 Likes
Message 3 of 8

xuantientutungXUK6E
Advocate
Advocate

thank you so much!

0 Likes
Message 4 of 8

Anonymous
Not applicable

can you please explain the how it will work.

0 Likes
Message 5 of 8

xuantientutungXUK6E
Advocate
Advocate

hi,

i need to change the coordinate of the circle center from WSC to USC. But after i change Autocad to USC coordinate, the center i get when i use the command (getproperties 'center...........) is still in WSC.

So use (trans (getproperties 'center........) 0 1), the point will change in to USC.

thanks.

0 Likes
Message 6 of 8

Anonymous
Not applicable

thanks for reply.

 

but still not get what you need, and the commands you used.

can you please reply step by step and post some screenshot if possible.

 

sorry for inconvience. 

0 Likes
Message 7 of 8

xuantientutungXUK6E
Advocate
Advocate

try these code, and use F2 to open consle and see what it be

 

(setq pttrong(getpoint ))
(setq wp(getpoint))
(command "_.ucs" wp pause pttrong) ; code to make UCS

 

(setq cirpt(getpoint )); code to choice center of a circle

(setq cirpt1 (trans cirpt 0 1) ); code change cirpt from WCS to UCS.

(princ cirpt ) 

(princ "change to" )

(princ cirpt1)

 

 

 

0 Likes
Message 8 of 8

Kent1Cooper
Consultant
Consultant

@xuantientutungXUK6E wrote:
....i want to change the center of circles to usc cordinate.

but after i change wsc to usc, i use getproperites 'center.... and the point center is still in WSC.

does it anyway to change it to new usc.

....


[That's WCS and UCS, by the way -- initials for Coordinate System.]  Depending on how you need to use the information, there could be a much easier way.  If you don't need to save it in code for some kind of calculations or the like, but you just want the center to be reported  to you in coordinates of the current UCS, just use the LIST command.

Kent Cooper, AIA