Author Topic: Help accessing hanger ancillary info in Revit  (Read 1374 times)

0 Members and 1 Guest are viewing this topic.

Offline bitterfitterTopic starter

  • Senior Member
  • ****
  • Posts: 395
  • Country: us
  • Gender: Male
Re: Help accessing hanger ancillary info in Revit
« Reply #15 on: Feb 02, 2022, 19:55:10 PM »
acad2015 - Just to report back.  Thanks again for the help.  i have moved along to gather and place all the ancillary properties into shared parameters which I set.  Everything is working well.  Now I have to brush up on my Python, as I believe this is where I need to look next.  Since every element (hanger) can have a different number of ancillaries, I think I want them to output from the code block in two lists, grouped by element.  So hanger 1 --> ancillary list 1, Hanger 2 --> ancillary list 2, and so on.  then I should be able to just report by index from the ancillaries per hanger.  Again, thanks for the huge push in the right direction  :)
"If you think education is expensive, you should see what ignorance costs you"

Offline bitterfitterTopic starter

  • Senior Member
  • ****
  • Posts: 395
  • Country: us
  • Gender: Male
Re: Help accessing hanger ancillary info in Revit
« Reply #16 on: Feb 04, 2022, 13:18:41 PM »
So I tried taking acad2015's code and adding a sub list to get the Ancillary Ids per element but I am getting an error. Can anyone see where I am going wrong here?
"If you think education is expensive, you should see what ignorance costs you"

Offline Axl

  • Full Member
  • ***
  • Posts: 95
  • Country: us
  • Gender: Male
Re: Help accessing hanger ancillary info in Revit
« Reply #17 on: Feb 04, 2022, 15:19:36 PM »
Change    Ancillaries = []
for          Ancillaries = list()
CADmep DB Manager
Content Manager
Scripting

Offline bitterfitterTopic starter

  • Senior Member
  • ****
  • Posts: 395
  • Country: us
  • Gender: Male
Re: Help accessing hanger ancillary info in Revit
« Reply #18 on: Feb 04, 2022, 16:13:18 PM »
Thanks Axl.  That did it for sure...  So now we have reported one of the 6 pieces of data I need from each ancillary. I am thinking now I have to replicate the script, altering for each of the 6 pieces of data I need.  then a massive sort/group to get all the data into the correct shared parameter. :)
Thanks again to acad2015 and Axl for all the help so far.  I will make sure to post the final script/node when completed.
"If you think education is expensive, you should see what ignorance costs you"

Offline bitterfitterTopic starter

  • Senior Member
  • ****
  • Posts: 395
  • Country: us
  • Gender: Male
Re: Help accessing hanger ancillary info in Revit
« Reply #19 on: Apr 26, 2022, 17:56:20 PM »
Not to beat this ancillary thing to death, but is there a way I can pull the ancillary kit name instead of the actual pieces in the kit?  By ancillary kit name I mean the name of the kit I choose in the drop down at the top of the hanger rod where it comes in as Default? 
"If you think education is expensive, you should see what ignorance costs you"