Try this:
it should work ... if the angle is 60RADIANSCode:@(* 7 (sin 60))<75
For degrees:I admit that it is pretty complicated for a beginner, you should read the help file for Lisp expressionCode:@(* 7 (sin (/ (* 60 PI) 180)))<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
Thanks in advance.
Try this:
it should work ... if the angle is 60RADIANSCode:@(* 7 (sin 60))<75
For degrees:I admit that it is pretty complicated for a beginner, you should read the help file for Lisp expressionCode:@(* 7 (sin (/ (* 60 PI) 180)))<75
It's nice to be nice, but sometimes is nicer to be evil!.
![]()
Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
I'm afraid that the OP had listed LT as his AutoCAD type, so AutoLISP expressions aren’t applicable.
Regards,
Mircea
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.
Regards,Code:=CONCATENATE("@", ROUND(A1 * SIN(A2 * PI() / 180), 5), "<", A3)
Mircea




Or another alternative is to use the Windows calculator, and again copy-paste the answer into the command line.
You can use quickcalc in AutoCAD transparently and insert with Apply.
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()
thanks everyone




Registered forum members do not see this ad.
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.
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
Bookmarks