RevitCity.com Logo

Home  |  Forums  |  Downloads  |  Gallery  |  News & Articles  |  Resources  |  Jobs  |  FAQ  |  SearchSearch  |  Join  |  LoginLogin

Welcome !

95 Users Online (94 Members): Show Users Online - Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM

 

Forums

Forums >> Revit Building >> Technical Support >> Converting Integer To Text

Search this ThreadSearch this Thread | Page 1 of 1 |

Tue, Jan 23, 2018 at 4:21:47 PM | Converting Integer To Text

#1

nofearengineer


active

Joined: Mon, Jan 22, 2018
0 Posts
No Rating


Okay, first question here and I hope it's a good one.

I have a data device outlet family I created, and it has a couple of shared parameters that I am adding to the device schedule.  One of them is a text parameter that adds a letter annotation to the symbol.  Since the annotation in the symbol can't be shared, I made a similar shared parameter and simply based the value of the unshared value on the shared one.  Works great.  This will allow me to populate the floor plans with the outlet type designations from the schedule.

However, the other annotation is for the number of cables at the outlet. Yes, I could go the same "shared/unshared" method but I would like to be able to total the  number of cables from the schedule, which means the shared parameter must be numerical (and the non shared one has to be text).  So I'm getting the usual "bad units" type errors.

I suppose I could do a bunch of nested IF statements in the parameter formula (if that's the way to go, could someone steer me the right way on it?).  The only permutations are 1, 2, 3, or 4 cables at an outlet, so it could be done with 3 nested IF's right?  I'm terrible at the syntax, but I took a stab at the formula for the "Count" unshared parameter (Shared parameter is "Schedule):

= IF(Schedule = 1 , "1", IF (Schedule = 2 , "2", IF(Schedule = 3 , "3", "4"))

Maybe my syntax is wrong (right now I'm getting an "unexpected end of expression" error.  But if comeone could give their two cents if I'm wrong or headed in the right direction I'd really appreciate it.

If this sounds like a lot of trouble, the reason I want to do it this way is I have to lay out the devices right now (about 1,000 of them), but I haven't been given cable counts or device types yet...I only know where they will be.  Later, it will be much easier to enter the information into a schedule.


This user is offline

 

Wed, Jan 24, 2018 at 12:49:23 AM | Converting Integer To Text

#2

tim123


active

Joined: Tue, Apr 12, 2005
1310 Posts
4 Stars: 19 Votes


I'm not entirely sure about what you're trying to achieve, but I can see that your formula needs another closing bracket.


This user is offline

View Website

Wed, Jan 24, 2018 at 7:25:35 AM | Converting Integer To Text

#3

nofearengineer


active

Joined: Mon, Jan 22, 2018
0 Posts
No Rating


Let me try to clarify.  There is a label next to my data outlet symbol that indicates the number of data cables at the outlet.  I want this value to be entered from a schedule (and not via the floor plan), but the schedule value has to be a number for the schedule column to be able to be totalled to determine the number of cables on the project.

So I gave the outlet symbol a shared parameter for the schedule, and an unshared parameter for the label.  I am trying to connect the two parameters via formula.  The only values I forsee are 1, 2, 3, or 4 cables.

Thanks for spotting the missing parentheses...the formula is now whole, but it's not working as intended...every one returns 4 cables now, regardless of the schedule input.

Any ideas?


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Conditional toggle yes no formula

Revit Building >> Technical Support

Thu, Mar 3, 2016 at 8:49:22 AM

0

'Inconsistent units" error in parameter formula; length vs integer

Revit Building >> Technical Support

Fri, Dec 13, 2013 at 10:37:04 PM

5

Checking if a parameter value is a integer or a real

Revit Building >> Technical Support

Wed, Jan 16, 2008 at 6:48:49 AM

3

integer parameter problem

Revit Building >> Technical Support

Thu, Jun 14, 2007 at 3:15:37 PM

1

if statement question

Revit Structure >> Technical Support

Tue, Feb 4, 2014 at 10:51:10 AM

1

Site Stats

Members:

1989361

Objects:

22877

Forum Posts:

152179

Job Listings:

3

Sponsored Ads

Home | Forums | Downloads | Gallery | News & Articles | Resources | Jobs | Search | Advertise | About RevitCity.com | Link To Us | Site Map | Member List | Firm List | Contact Us

Copyright 2003-2010 Pierced Media LC, a design company. All Rights Reserved.

Page generation time: 0.3596

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights