Results 1 to 5 of 5

Thread: some help with a macro expression

  1. #1
    I could stop if I wanted to Doodlemusmaximus's Avatar
    Join Date
    2005-04
    Location
    RAT HALL
    Posts
    298
    Login to Give a bone
    0

    Default some help with a macro expression

    some help required pleaqse folks

    i've been trying to set up an expression in the menus that will automatically set the text size dependant on the dimscale. i've had no problems getting the dimscale set to bring in blocks etc but this one has not run at all.


    ^C^C(setq JAM (getvar "dimscale"))
    ^C^C(setvar textsize (cal 2.5*JAM))

    is the last trial but still no joy there.

  2. #2
    Member
    Join Date
    2011-02
    Posts
    15
    Login to Give a bone
    0

    Default Re: some help with a macro expression

    hello use (* 2.5 JAM) instead of (cal 2.5*JAM)

  3. #3
    I could stop if I wanted to Doodlemusmaximus's Avatar
    Join Date
    2005-04
    Location
    RAT HALL
    Posts
    298
    Login to Give a bone
    0

    Default Re: some help with a macro expression

    Quote Originally Posted by adamnapoleon112151 View Post
    hello use (* 2.5 JAM) instead of (cal 2.5*JAM)
    Sorry but this again doesn't work

  4. #4
    Member
    Join Date
    2011-02
    Posts
    15
    Login to Give a bone
    0

    Default Re: some help with a macro expression

    i think you missed the qoutation marks "textsize"

    ^C^C(setvar "textsize" (* 2.5 JAM))

    or, you can make it in one line..

    ^C^C(setvar "textsize" (* 2.5 (getvar "dimscale")) )
    Last edited by adamnapoleon112151; 2011-03-21 at 09:13 AM.

  5. #5
    I could stop if I wanted to Doodlemusmaximus's Avatar
    Join Date
    2005-04
    Location
    RAT HALL
    Posts
    298
    Login to Give a bone
    0

    Default Re: some help with a macro expression

    NOW THAT WORKS

    trying to overcomplicate it one feels

Similar Threads

  1. CP222-2: Autodesk Revit VSTA: Writing Your First Macro An Introduction to the Macro Manager
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 02:12 AM
  2. 2014: CUI Macro with Diesel Expression
    By ccarlson376355 in forum AutoCAD Customization
    Replies: 7
    Last Post: 2013-06-10, 08:39 PM
  3. Using a Diesel expression in a macro
    By barker_anthony in forum AutoCAD Customization
    Replies: 3
    Last Post: 2010-10-28, 06:16 PM
  4. Challenging Macro to reverse the function of an existing macro
    By parminderkeilah in forum VBA/COM Interop
    Replies: 1
    Last Post: 2008-05-19, 02:50 PM
  5. call script within macro & nested macro
    By wahyudin in forum AutoCAD LT - General
    Replies: 3
    Last Post: 2007-10-22, 01:10 PM

Posting Permissions

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