+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2018
    Join Date
    Jan 2018
    Posts
    42

    Default Attributes with math formulas

    Registered forum members do not see this ad.

    hi, I'm trying to create blocks with some mathematical formulas in the attributes, so that inserting values into the other attributes gives me a result in the attribute with the formula.
    I have succeeded in very simple cases, but I would like to try with more complex formulas...
    1) the biggest problem is that the procedure is too much intricate...(for example):
    https://www.youtube.com/watch?v=msWBQZ5E0d4
    2) ...and the next problem is that I do not know the syntax for writing complicated formulas with roots, exponentiation, logarithms ecc...

    Do you have any suggestions to give me or some discussion to signal me?
    Thank you in advance

  2. #2
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,800

    Default

    sqrt function page 149 of my Acad 12 lisp manual (setq y 4) (sqrt y) =2

    (exp number) constant e raised to the power of number page 111

    (log number) natural log number page 131

    What I am saying is that if you look up lisp help you will find the answers, writing a complex formula in lisp does require a bit of thought often requiring more than 1 line of code. compared to say normal coding expression VBA basic etc
    A man who never made mistakes never made anything

  3. #3
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2018
    Join Date
    Jan 2018
    Posts
    42

    Default

    Registered forum members do not see this ad.

    thank you...then, if I understood correctly, enter a formula into an attribute using the data field, has the same syntax as in lisp? and this also applies to autocad tables?
    however, beyond the syntax, the procedure is really laborious ... muble muble ...

Similar Threads

  1. Formulas that are not Seen
    By rubio_jose in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 31st Oct 2017, 07:29 pm
  2. Formulas in blocks
    By Trebuchet in forum AutoCAD Drawing Management & Output
    Replies: 0
    Last Post: 22nd Feb 2011, 11:00 pm
  3. ARC Formulas
    By David Bethel in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 15th Feb 2011, 09:51 pm
  4. Ohm's Law Formulas
    By The Buzzard in forum AutoLISP, Visual LISP & DCL
    Replies: 23
    Last Post: 8th Jun 2009, 11:06 am
  5. Add formulas to a table
    By AutoCAD Tips Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 4th Nov 2008, 09:40 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