Posts

Showing posts from July, 2017

Set Assembly Code file - Dynamo

Set Assembly Code file - Dynamo:

# Default importsimportclrclr.AddReference("RevitAPI")clr.AddReference("RevitNodes")fromAutodesk.Revit.DBimport*#################################importRevit#################################clr.ImportExtensions(Revit.GeometryConversion)#################################clr.ImportExtensions(Revit.Elements)################################## Import DocumentManager and TransactionManager##################################clr.AddReference('RevitServices')#################################importRevitServices#################################fromRevitServices.PersistenceimportDocumentManager#########################fromRevitServices.TransactionsimportTransactionManager#####################doc=DocumentManager.Instance.CurrentDBDocument#############################elements=IN[0]##Elements in the model ##EXPECTS STRINGS FROM EXCEL TO STARTheaders=IN[1]##Headers for referencedata=IN[2]##Data###Initializeout=[]outMain=[]outSub=[]found=0##Fin…

Python Script node for Notepad.exe. Possible? - Developers - Dynamo

Python Script node for Notepad.exe. Possible? - Developers - Dynamo:




importclrclr.AddReference("RevitAPIUI")fromAutodesk.Revit.UIimportTaskDialog##Import task dialog##from datetime import datetime ##Formatting date time strings for filesimporttime##Time as in NOW or tiem string format functionsimportsys##Validate thie is here and avaiable#########sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')importsubprocess##Launching asynchronus processess like notepadimportos##Operating system - CASE SENSITIVEmsg=IN[0]##DAta in 0##msgbox=TaskDialog ##Task Dialogastr=""##STR for formattingforiinmsg:##BIG MESSAGE LISTsstr=""##SUB STRINGforjini:forkinj:sstr=sstr+str(k)+"\t"##ADD TAB SEPARATORSsstr=sstr+"\n"##ADD CARRIAGE RETURN to substringastr=astr+sstr+"\n"##ADD substring to main and spacer carriage return##Set file name using date-time in C:\TEMP####fn="C:\\temp\\DynamoError-&…

TOF Cameras

So I have been thinking for a while- if I had a motion picture or multiple pictures and a special light and a special FILM or CMOS to capture that light- I could measure the reflection of the special light to get an approximation of depth.



Thinking about LIDAR and  fixed sensors - I realized this could be taken a step further- capturing the TOF (Time of flight) of light at different intervals using a MOSFET or similar super-fast action capture device.



Apparently there are similar items on the web called TOF Cameras...



https://www.baslerweb.com/en/support/



Support | Basler:



'via Blog this'