Horje
get link element revit api Code Example
get link element revit api
  UIApplication uiapp = commandData.Application;
            UIDocument uidoc = uiapp.ActiveUIDocument;
            Application app = uiapp.Application;
            Document doc = uidoc.Document;
			ObjectType obt=ObjectType.LinkedElement;
			Reference refElemLinked;
			Element linkedelement = null;
			
			refElemLinked = uidoc.Selection.PickObject(obt, "Please pick an element in the linked model");
                        RevitLinkInstance elem = doc.GetElement(refElemLinked.ElementId) as RevitLinkInstance;
                        Document docLinked = elem.GetLinkDocument();
						
						linkedelement = docLinked.GetElement(refElemLinked.LinkedElementId);




Csharp

Related
c# read key without writing Code Example c# read key without writing Code Example
eager loading singleton c# dependency injection Code Example eager loading singleton c# dependency injection Code Example
how to split a string in f# Code Example how to split a string in f# Code Example
make string uppercase c# Code Example make string uppercase c# Code Example
c# Escape sequence Code Example c# Escape sequence Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9