View Full Version : help creating 'Model' param name from other values
ddenton
2009-06-25, 09:53 PM
hi all,
in a furniture family, how would i create a value for the param 'Model' from a Yes/No param and another dimension param? here's what i started wit, but can't get this to work.
IF ("Option_A" = "Yes") "Str1", "Str2")
<<returns error 'Constant not expected: " ' >>
once this works, i need to add the value of a 'Length' param
using 2009 - we have 2010, but prefer 2009 UI.
thanks for your time.
peterjegan
2009-06-25, 10:12 PM
Yes/No params are implied in an if statement:
IF (Option_A, "Str1", "Str2")
And no quotes around params.
ddenton
2009-06-25, 10:32 PM
thanks. quotes around the param - rying to overcome spaces in the name. forgot to remove.
now, what do i add to that formula to include the value of the Length param per my OP.
thank you Peter.
Scott Womack
2009-06-26, 11:21 AM
thanks. quotes around the param - rying to overcome spaces in the name. forgot to remove.
now, what do i add to that formula to include the value of the Length param per my OP.
Currently, Revit has NO string concatenation, or sub-string handling capabilities in schedules or families. This would have to be handles with the API/ Custom programing. It had been on the wish list a while back, but insufficient people voted for it, so I gave up on re-posting it time after time.
peterjegan
2009-06-26, 01:46 PM
Not sure what you are trying to do, but this would allow you to set different lengths
if(Option_A, Length_A, Length_B) where Length_A and _B are length params in the family.
ddenton
2009-06-26, 04:07 PM
Currently, Revit has NO string concatenation,
ouch, that really hurts. so if you have a family with quite a few little options, there's no real way to 'build' the Model param value from other param values without custom programming?
i really don't want to create 30 types just to populate a Model param value when a visibility param should be able to handle this just fine.
thanks for your time Scott. any other creative suggestions would be much appreciated.
ddenton
2009-06-26, 04:10 PM
if(Option_A, Length_A, Length_B) where Length_A and _B are length params in the family.
i would like to generate the Model param value by concatenating the returned value my orig IF statement, and Length_A. it appears that is not possible.
thanks for your reply though, it answers another question i had.
peterjegan
2009-06-26, 05:55 PM
Sounds to me like a type catalog will do what you are trying for. I would suggest that you make sure you understand type catalogs before proceeding, giving up and/or moving on.
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.