# Thread: Displacement distance as @(7sin60)<75

1. ## Displacement distance as @(7sin60)<75

Registered forum members do not see this ad.

Is there any way to include a trig function in the displacment distance?
@(7sin60)<75 does not work, but it is what I would like to do.
I have to calculate it each time and type in something like the following:
@6.062178<75

2. Try this:
Code:
`@(* 7 (sin 60))<75`
it should work ... if the angle is 60RADIANS
For degrees:
Code:
`@(* 7 (sin (/ (* 60 PI) 180)))<75`
I admit that it is pretty complicated for a beginner, you should read the help file for Lisp expression

3. I'm afraid that the OP had listed LT as his AutoCAD type, so AutoLISP expressions aren’t applicable.

Regards,
Mircea

4. An alternative solution is to use Excel to do the calculation and build the displacement string - use cells A1, A2 and A3 to fill your values and copy-paste the concatenated string to AutoCAD command prompt.
Code:
`=CONCATENATE("@", ROUND(A1 * SIN(A2 * PI() / 180), 5), "<", A3)`
Regards,
Mircea

5. Or another alternative is to use the Windows calculator, and again copy-paste the answer into the command line.

6. You can use quickcalc in AutoCAD transparently and insert with Apply.

7. thanks everyone

8. Originally Posted by SLW210
You can use quickcalc in AutoCAD transparently and insert with Apply.
Yes, I was wondering whether LT had that facility.

9. Originally Posted by msasu
An alternative solution is to use Excel to do the calculation and build the displacement string - use cells A1, A2 and A3 to fill your values and copy-paste the concatenated string to AutoCAD command prompt.
Code:
`=CONCATENATE("@", ROUND(A1 * SIN(A2 * PI() / 180), 5), "<", A3)`
Regards,
Mircea
The above expression is written in Excel. Is it correct?
Then how do you send this expression into cad? copy/paste?

10. Registered forum members do not see this ad.

Originally Posted by khoshravan
The above expression is written in Excel. Is it correct?
That's true, it is a formula for Excel. I proposed that to help OP build desired expresion since on LT there is no AutoLISP available.

Originally Posted by khoshravan
Then how do you send this expression into cad? copy/paste?
The method is indeed Copy/Paste - I already stated that into my post; just be careful to copy from cell, not from formula field.

Regards,
Mircea

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts