Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get level information on stair and ramp component

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
pmeigneux
611 Views, 4 Replies

Get level information on stair and ramp component

Hello,

 

We would like to find the level information for all the component of a stair or a ramp (example: Railing, Top Rail, Support).

 

When we create a stair or a ramp in Revit, the information named “Based Level” is only present on the stair or the ramp instances. We don’t have to kind of information on the others instances like Railing, Top Rail, Support, etc).

 

So:

 

  • How can we find this level information on these specifics objects? Or what’s is the information needed to link these specifics instances to the ramp or the stair instances.
  • If we change the language interface of Revit, the attribute “Based level” will be changed. How can we obtain this information regardless the UI language?

 

Regards,

Philippe

4 REPLIES 4
Message 2 of 5
matthew_taylor
in reply to: pmeigneux

Hi Philippe,
I'm not at a PC right now, but in answer to your first question, it appears that a Railing has a LevelId property, and a HostId property. The others are probably the same.
In answer to your second question, use a builtinparameter. They are an enumeration, and are language independent.

Have you installed the latest RevitLookup? I'm sure it would clarify each of these answers.

Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 3 of 5
jeremytammik
in reply to: pmeigneux

It is important to avoid using language dependent display names to access parameters.

 

Here is one of many discussions by The Building Coder pointing that out:

 

http://thebuildingcoder.typepad.com/blog/2015/06/ifc-guid-access-life-span-and-cloning-of-geometry.h...

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 4 of 5
pmeigneux
in reply to: matthew_taylor

Hello Philippe,

 

With RevitLookUp, we almost find all our level informations on stairs components.

 

Indeed, we didn't arrive to extract this information on the stairs supports elements.

We looked into RevitLookUp, but we can not find any information about level or host element data.

 

Our wish is to find one of these information directly on the stairs supports elements.

 

Do you know any workaround to do this?

 

Thanks for your support,

Message 5 of 5
matthew_taylor
in reply to: pmeigneux

Hi @pmeigneux,

Well, if you have the latest version of RevitLookup, and Revit 2017, you will see 'GetStairsSupports'.

Of course, if you're just talking about whatever slab/beam/wall etc the stair is sitting on, or appearing to finish at, then you will probably have to do some extra work to find them (as they're not really associated as far as I know). There are many methods to try to do this. You'll have to find what works for you.

http://thebuildingcoder.typepad.com/.services/blog/6a00e553e16897883300e553fcc7418834/search?filter....

Of course, if they are 'joined', then that's pretty simple. (JoinGeometryUtils)


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community