Cannot get Project Base Point parameters from linked model

Cannot get Project Base Point parameters from linked model

ediloreto8W6MG
Participant Participant
279 Views
2 Replies
Message 1 of 3

Cannot get Project Base Point parameters from linked model

ediloreto8W6MG
Participant
Participant

I'm trying to get the "N/S", "E/W", "Elev" and "Angle to True North" parameters from a PBP in a linked model. I'm using RevitPythonShell. The problem is I can only access to this parameters:

- Edited by
- Type Name
- Family Name
- Workset
- Category
- Design Option

 

What could be the reason?

 

app = doc.Application
docs = app.Documents

for d in docs:
    if d.Title != doc.Title:
        l_doc = d
        break

collector = FilteredElementCollector(l_doc);
points = collector.OfClass(BasePoint)

for p in points:
    if not p.IsShared:
        pbp = p
        break

for p in pbp.Parameters:
    print(p.Definition.Name)

 

 

0 Likes
Accepted solutions (1)
280 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Here is a thread demonstrating a completely different approach:

  

https://forums.autodesk.com/t5/revit-api-forum/how-to-get-true-north-direction-in-xyz/m-p/11018348

  

Does that help? Let us know. Thx!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

ediloreto8W6MG
Participant
Participant
It worked! Thanks for your time!
0 Likes