+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Forum Newbie
    Using
    AutoCAD LT 2011
    Join Date
    Feb 2012
    Posts
    2

    Default 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

    Thanks in advance.

  2. #2
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,543

    Default

    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
    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.

  3. #3
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,942

    Default

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

    Regards,
    Mircea

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,942

    Default

    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. #5
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    3,520

    Default

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

  6. #6
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 24"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    10,022

    Default

    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



  7. #7
    Forum Newbie
    Using
    AutoCAD LT 2011
    Join Date
    Feb 2012
    Posts
    2

    Default

    thanks everyone

  8. #8
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    3,520

    Default

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

  9. #9
    Senior Member khoshravan's Avatar
    Computer Details
    khoshravan's Computer Details
    Operating System:
    Windows 7
    Computer:
    Sony Vaio
    Using
    AutoCAD 2010
    Join Date
    Feb 2009
    Location
    Tabriz
    Posts
    425

    Default

    Quote Originally Posted by msasu View Post
    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. #10
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,942

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by khoshravan View Post
    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.

    Quote Originally Posted by khoshravan View Post
    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

Similar Threads

  1. Copy- second point of displacement problem
    By Grand Pre in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 1st Sep 2011, 07:33 pm
  2. distance in paperspace - command distance
    By flopo in forum AutoCAD General
    Replies: 9
    Last Post: 20th Jul 2011, 06:41 pm
  3. Replies: 14
    Last Post: 23rd Jul 2010, 05:14 pm
  4. Copying/Pasting with a displacement
    By matt4 in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 13th Apr 2009, 07:10 pm
  5. displacement
    By rupert_valero in forum AutoCAD General
    Replies: 3
    Last Post: 4th Dec 2006, 04:06 pm

Bookmarks

Posting Permissions

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