jdmcclung
Mechanical
- Aug 16, 2002
- 7
I am trying to write a command to draw a formed channel. I am using the polar command to find the points around the channel.
ex. (setq pt2 (polar pt1 (dtr 180) 5))
The problem I am comming across is that the two angles of the channel will not always be 90 deg. For instance if the two angles are 90 the top leg will end up in a 0 deg direction according to the UCS. However if the two angles were 135 deg the top leg would be in a 90 deg direction. So in short the second angle is based off the first angle. I tried to use the angbase command to rotate the ucs, but found that the polar command works off of the WCS; which can not be edited. Is there another command similiar to polar that will work with the ucs? or some other way to base the second angle off the first. Thank you.
ex. (setq pt2 (polar pt1 (dtr 180) 5))
The problem I am comming across is that the two angles of the channel will not always be 90 deg. For instance if the two angles are 90 the top leg will end up in a 0 deg direction according to the UCS. However if the two angles were 135 deg the top leg would be in a 90 deg direction. So in short the second angle is based off the first angle. I tried to use the angbase command to rotate the ucs, but found that the polar command works off of the WCS; which can not be edited. Is there another command similiar to polar that will work with the ucs? or some other way to base the second angle off the first. Thank you.