GHutch Posted February 26, 2012 Share Posted February 26, 2012 Is there any way to include a trig function in the displacment distance? @(7sin60) I have to calculate it each time and type in something like the following: @6.062178 Thanks in advance. Quote Link to comment Share on other sites More sharing options...
fuccaro Posted February 27, 2012 Share Posted February 27, 2012 Try this: @(* 7 (sin 60))<75 it should work ... if the angle is 60RADIANS For degrees: @(* 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 Quote Link to comment Share on other sites More sharing options...
MSasu Posted February 27, 2012 Share Posted February 27, 2012 I'm afraid that the OP had listed LT as his AutoCAD type, so AutoLISP expressions aren’t applicable. Regards, Mircea Quote Link to comment Share on other sites More sharing options...
MSasu Posted February 27, 2012 Share Posted February 27, 2012 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. =CONCATENATE("@", ROUND(A1 * SIN(A2 * PI() / 180), 5), "<", A3) Regards, Mircea Quote Link to comment Share on other sites More sharing options...
eldon Posted February 27, 2012 Share Posted February 27, 2012 Or another alternative is to use the Windows calculator, and again copy-paste the answer into the command line. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted February 27, 2012 Share Posted February 27, 2012 You can use quickcalc in AutoCAD transparently and insert with Apply. Quote Link to comment Share on other sites More sharing options...
GHutch Posted February 27, 2012 Author Share Posted February 27, 2012 thanks everyone Quote Link to comment Share on other sites More sharing options...
eldon Posted February 27, 2012 Share Posted February 27, 2012 You can use quickcalc in AutoCAD transparently and insert with Apply. Yes, I was wondering whether LT had that facility. Quote Link to comment Share on other sites More sharing options...
khoshravan Posted March 16, 2012 Share Posted March 16, 2012 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. =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? Quote Link to comment Share on other sites More sharing options...
MSasu Posted March 17, 2012 Share Posted March 17, 2012 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. 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 Quote Link to comment Share on other sites More sharing options...
YZ Posted June 18, 2012 Share Posted June 18, 2012 @6.062178 Is the distance you require one that will change frequently? Is it in anyway related to the scale of the drawing? I just discovered that you can use 'spacetrans command within the displacement function. This may not be helpful to you, but it does keep the hope of a transparent calculator alive. I only learned about 'spacetrans command last month, after 7 years of CAD. Perhaps there are others that can be used in this way? I am yet to find a comprehensive list. Quote Link to comment Share on other sites More sharing options...
YZ Posted June 18, 2012 Share Posted June 18, 2012 Okay, so Spacetrans may not be helpful to you at all. But the ' used before a command to use that command transparently inside another command may be of more use. You can use a command line calculator function called CAL. I have not had time to get the 7sin60 Command: M MOVE Select objects: 1 found Select objects: Specify base point or [Displacement] : D Specify displacement : 'CAL >>>> Expression: SIN(60) Resuming MOVE command. Specify displacement : 0.86602540378444 Quote Link to comment Share on other sites More sharing options...
khoshravan Posted June 18, 2012 Share Posted June 18, 2012 Is the distance you require one that will change frequently? Is it in anyway related to the scale of the drawing? I just discovered that you can use 'spacetrans command within the displacement function. This may not be helpful to you, but it does keep the hope of a transparent calculator alive. I only learned about 'spacetrans command last month, after 7 years of CAD. Perhaps there are others that can be used in this way? I am yet to find a comprehensive list. What is spacetrans command? Quote Link to comment Share on other sites More sharing options...
YZ Posted June 18, 2012 Share Posted June 18, 2012 Spacetrans outputs the model space distance of a paperspace distance input by the user. It is particularly good for setting standard text heights in all different scales. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.