Removing an Element

This script shows how to remove an Element from the document. This can be done by calling the document’s ‘removeObject()’ method. Please be aware that the Element still exists in memory, it just does not belong to the document anymore. You can reassign it by calling the ‘addObject()’ method. This can be useful for undo/redo […]

Read More

Setting the color of an Element

This script shows how to set the color, transparency and line width of an Element. There are four colors in Lexocad which define the visual appearance of an Element: Diffuse Color Emissive Color Specular Color Ambient Color Please refer to the Draw.OglMaterial class for more information. import Base import OpenLxApp as lx import OpenLxUI as ui app […]

Read More