PDA

View Full Version : How to identfy where an element is visible?



richard.binning
2007-02-09, 06:43 PM
Quick question: Is it possible to identify by sheet number where a building element is visible using the API?

I am working on documenting the effect of change as it ripples through a design and would like to automate the "select element by id" method of finding an object and then clicking "show" to cycle through all the views.

Is it possible using the current state of the api?...has anyone done it already?

Thanks,

Richard

GuyR
2007-02-09, 07:34 PM
You could do it this way.

Get your element ID.
Get all Sheets and consequently views on sheets.
Check all applicable views for element with required ID.

HTH,

Guy

Danny Polkinhorn
2007-02-11, 01:26 AM
Using Guy's suggestion and taking it one step further, it would be much quicker in subsequent checks to save the view element IDs in each element as a hidden parameter. Then when you change something, you only need to grab the view IDs off that one element. This would save you from having to walk the entire element tree again. You would need a little routine to update the elements as you make changes to views however.