misunderstand this line ( Document doc = uiapp.ActiveUIDocument.Document; )

misunderstand this line ( Document doc = uiapp.ActiveUIDocument.Document; )

eng.elfeky
Participant Participant
826 Views
1 Reply
Message 1 of 2

misunderstand this line ( Document doc = uiapp.ActiveUIDocument.Document; )

eng.elfeky
Participant
Participant

hello , iam new to programming but i have a problem in understanding this line

Document doc = uiapp.ActiveUIDocument.Document;

uiapp is an object of UIApplication class and  ActiveUIDocument is a property of uiapplication class so i can reach to it but the word document in (uiapp.ActiveUIDocument.Document) , what is the usage of it and there isnot any member or method called document for the uiapplication class 

so i want to know what is document word is it method , member of some class and the usage of it?

 

0 Likes
Accepted solutions (1)
827 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Welcome to Revit API programming!

 

Please refer to the Revit API getting started material and all will become clear for you:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes