Hi,
I have a family where I were using model lines to indicate insertion point. Is it possible to get an attbirutes of those model lines (name) from project environment?
@denisyukj ,
actually i am not a big fan of model lines
so i think the smartes way is just get Element.Location
KR
Andreas
Me too, it’s just an indicator from user’s side
Hi @denisyukj
1- Add the line at subcategory
2- use Brimohareb_XXX pak. to delect this line from the project by subcategory
@Draxl_Andreas
Is P2 name of model line subcategory?
@denisyukj ,
thats the name of the nested familyinstance
Thank you for sharing. Is it open source? Asking because trying to avoid a lot of packages.
Also found information from following topic.
Hi Ahmed,
This revised version takes a list of elements and a list of subcategory names and returns a list of geometries and a corresponding list of subcategory names that the geometry belongs to enable further filtering / sorting.
Hope this helps,
Thomas
[image]
# Enable Python support and load DesignScript library and Revit nodes and services
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry impor…
it is not open source, also you can use this post. it has the same concept. only if you need to get “Reference_DB”, “Reference_Geometry” in addional of Line “Geometry”. you can use these Reference or add dimention for example.
Hi Ahmed,
This revised version takes a list of elements and a list of subcategory names and returns a list of geometries and a corresponding list of subcategory names that the geometry belongs to enable further filtering / sorting.
Hope this helps,
Thomas
[image]
# Enable Python support and load DesignScript library and Revit nodes and services
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry impor…