Results 1 to 2 of 2

Thread: Revit Number Parameters - remove trialing zeros

  1. #1
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,687
    Login to Give a bone
    0

    Default Revit Number Parameters - remove trialing zeros

    So I had a team member that was trying to use Dynamo to import a list of equipment numbers into revit from excel. It wouldn't read them as a text parameter due to formatting in excel. So he changed the parameter to be a number.

    So when you make a new parameter that is a "Number" parameter, by default (at least in our set up) it lists as "0.00000".
    I can't set it to a unit because it's a unitless parameter. It's trying to display the equipment number which is 1001.1 as an example. Most of them don't have any decimal points, they are whole numbers, but a few of them do.

    Anyway, I can't seem to find any spot where I can either change the units to have it stop at 1 decimal place or simply remove trailing zeros.

    Anyone got any tricks or ways to accomplish this?
    Let me know.
    Thanks!

  2. #2
    100 Club
    Join Date
    2015-08
    Posts
    199
    Login to Give a bone
    0

    Default Re: Revit Number Parameters - remove trialing zeros

    Have you tried using the custom format in excel for the numbers and then setting "0,000.0" as the type. This might get around Revit not being able to read the value as text. I don't know of a way to fix this in Revit without using a macro or editing in the Dynamo script.

Similar Threads

  1. 2013: AutoLISP to Remove Zeros from Attribute Values
    By chris.ortloff676798 in forum AutoCAD General
    Replies: 9
    Last Post: 2014-07-21, 01:39 PM
  2. "Feature Label" trailing zeros.
    By dmingo in forum AutoCAD Map 3D - General
    Replies: 2
    Last Post: 2009-11-30, 01:39 PM
  3. Do you want leading zeros in labels?
    By MarkTheSwampThomas in forum AutoCAD Civil 3D - General
    Replies: 6
    Last Post: 2008-02-12, 03:15 PM
  4. two layer zeros?
    By Wanderer in forum AutoCAD General
    Replies: 7
    Last Post: 2004-12-17, 06:01 PM
  5. suppressed zeros
    By Les Therrien in forum Revit Architecture - General
    Replies: 7
    Last Post: 2004-02-02, 03: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
  •