Hello,
Finally I create a first version of a macro for node selection (too much for improving yet).
Once a node is selected, the macro highlights the selected node and also all the nodes from the adjacent elements. It is quite limited but solve a part of my problem. See figure:
- NodeSelectorexample.png (560.04 KiB) Viewed 1721 times
I have two more questions:
Is it possible to change the color of the highlighted nodes?
and it is possible to highlight, or change the color of the wireframe?
I check this options by typing in python API:
Code: Select all
dir(Gui.ActiveDocument.getObject("FEMMeshGmsh"))
#['Annotation', 'BackfaceCulling', 'BoundingBox', 'Content', 'DisplayMode', 'ElementColor', 'HighlightedNodes', 'IV', 'Icon', 'LineWidth', 'MaxFacesShowInner', 'MemSize', 'Module', 'NodeColor', 'NodeDisplacement', 'Object', 'PointColor', 'PointSize', 'PropertiesList', 'Proxy', 'RootNode', 'Selectable', 'SelectionStyle', 'ShapeColor', 'ShapeMaterial', 'ShowInner', 'Transparency', 'TypeId', 'Visibility', 'VisibleElementFaces', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'addDisplayMode', 'addExtension', 'addProperty', 'applyDisplacement', 'claimChildren', 'finishEditing', 'getAllDerivedFrom', 'getDocumentationOfProperty', 'getEditorMode', 'getGroupOfProperty', 'getPropertyByName', 'getTypeIdOfProperty', 'getTypeOfProperty', 'hasExtension', 'hide', 'isDerivedFrom', 'isEditing', 'isVisible', 'listDisplayModes', 'removeProperty', 'setEditorMode', 'setNodeColorByScalars', 'setNodeDisplacementByVectors', 'setTransformation', 'show', 'startEditing', 'supportedProperties', 'toString', 'update']
but I dont know which are callbacks or properties....
Thank you so much for your help!!!