Request: Survey-tool, enhancement

A forum dedicated to the Draft, Arch and BIM workbenches development.
User avatar
teobo
Posts: 405
Joined: Fri Feb 21, 2014 11:23 am

Request: Survey-tool, enhancement

Postby teobo » Sat Jul 26, 2014 3:09 pm

Hi,
just analized the survey tool a bit. And found it quite useful.
1. It would be of even greater interest, if I found a way to how could select faces by python script and after that trigger the annotation. So the tool could be entirely run by script. Does anyone know?
2. I would like to have it enhanced: that it is invoked by a parameter a=list of faces(objects), b=list of arbitrary strings
So one could see whatever information is requested at each face (color, naming, inclination, other material parameters).

What do you think of it?
User avatar
yorik
Site Admin
Posts: 11371
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Request: Survey-tool, enhancement

Postby yorik » Sat Jul 26, 2014 4:20 pm

THe survey tool itself is pretty simple.. Doing what you describe is pretty easy to do directly in python, there is no real need to use the survey tool for that. It's basically a matter of getting the faces, getting their center point, then create an AnnotationLabel object at that point. Have a look at https://github.com/FreeCAD/FreeCAD_sf_m ... ds.py#L653 to see how it works...
User avatar
teobo
Posts: 405
Joined: Fri Feb 21, 2014 11:23 am

Re: Request: Survey-tool, enhancement

Postby teobo » Sat Jul 26, 2014 6:27 pm

ok?
maybe you are right. For the thing described, it is not necessary. Let me think about it. Maybe yes on mouse one needed arbitrary_ info. For one could feed survey() with an objects string list to be shown on mouse. Gonna think about it.