« Happy Building Coder Birthday! | Main | Autodesk Search Beta »

August 24, 2009

Comments

Hi. I need to ask you. I think it´s not possible, but you are an expert with API and tell me if we can change the information of that SCALE LABEL, shown on titleblocks ? When we have two different scales on sheet, the value is AS INDICATED. But if I want to change to other thing ? If I need to translate to FRENCH or ITALIAN ?

Dear Ricardo,

One easy way to check this is to use the built-in parameters checker which is part of the Revit API introduction labs, cf.

http://thebuildingcoder.typepad.com/blog/2009/04/deeper-parameter-exploration.html

I created a new sheet, selected the title block, and launched the built-in parameters checker. One of the parameters that it displays is the built-in parameter SHEET_SCALE with the display name 'Scale'. It is a string-valued parameter and is unfortunately marked as read-only.

Is that the one you are interested in? If so, then, as you can see, you seem to be out of luck. Being marked as read-only, it cannot be modified directly through the API. I'll ask around and see whether I can find any other way to modify this information.

Cheers, Jeremy.

Dear Ricardo,

A colleague of mine, Phil Xia, has the following suggestion for you: How about modifying the title block of the sheet? It is a family, the texts can be modified or localized. Simply open the family file for editing and modify that.

Cheers, Jeremy.

Hello Jeremy,

I'm new to this whole API thing and quite honestly, not quite sure I get it all so i'll be reading on that on the weeks to come. However, I was wondering if it is feasable to refer a family parameter (while building the family in REVIT) to a built-in parameter (such as SHEET_SCALE). For example, I could have a yes/no parameter showing either the label refering to the built-in parameter or the family parameter depending id SHEET_SCALE is showing "As indicated".

It might seem far fetch, but again I'm just getting started with the formulas, never mind the API.

Thank you,

Dear Sebastien,

I should think that that is possible. Please have a look at the method AssociateElementParameterToFamilyParameter and the samples provided with the family API webcast:

http://thebuildingcoder.typepad.com/blog/2009/08/the-revit-family-api.html

http://thebuildingcoder.typepad.com/blog/2009/10/revit-family-creation-api-labs.html

Cheers, Jeremy.

Dear sir,
Is this possible to hide/invisible a Family Parameter from Family Types?

Thanks & Regards,
-Nitin

Dear Nitin,

As far as I know, family parameters are always visible, aren't they?

Cheers, Jeremy.

Dear sir,
I come to know that shared parameters can be invisible(tried some code), but till they are shown in Revit 'Family Types' window.
I m not able to understand this concept.

Please help.
Thanks & regards
-Nitin

Dear Nitin,

If you say so, then I guess that is the way it is.

I hope this helps :-)

Cheers, Jeremy.

Dear sir,
Thanks for quick reply.
May i know in what situation is Visible property of shared parameter useful?

Thanks & Regards,
-Nitin

Dear Nitin,

In the project environment, as far as I know.

Cheers, Jeremy.

Dear Sir,

I want to change scale displayed on sheet "As Indicated" to "As shown".I have got only Revit 2012 only could you please advise me.


Regards,
Vikas

Dear Vikas,

Can you achieve what you need manually through the user interface? If not, it is probably not possible through the API either.

Cheers, Jeremy.

Hello Jeremy,is it possible to make shared parameter non editable?

Dear Sandeep,

No, not really.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource