1
Automation Interface, Add-Ins and Tools / Re: Set Label Colour and Transparency in Shape Scripts
« on: May 26, 2026, 06:12:20 pm »
Also... any way to make the background of the label transparent via a shape script?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
// CONNECTOR SHAPE
shape main
{
setpenwidth(2);
setpencolor(1,252,243);
setfontcolor(1,252,243);
setlinestyle("DASH");
moveto(0,0);
lineto(100,0);
}

SELECT
t_object.name,
t_objectfiles.*
FROM
t_object INNER JOIN
t_objectfiles ON t_object.object_id = t_objectfiles.object_id
WHERE
t_object.name = 'My Use Case with URL';
Now in this case, have you checked Element.propertyType? That might contain the elementID of the classifying block.


function findPartProperties(objectID)
{
//Variable declarations
var currentElement as EA.Element // The element currently being processed
var childElement as EA.Element // A child element of the currently processed element
var classifierElement as EA.Element // The element that classifies a part (and may in turn have further parts)
//Set current element
currentElement = Repository.GetElementByID(objectID);
//Access child elements by looping through all nested elements
for (let i = 0; i < currentElement.Elements.Count; i++) {
childElement = currentElement.Elements.GetAt(i);
Session.Output("Found nested element: " + childElement.Name + " of type: " + childElement.Type + " and with classifier: " + childElement.MiscData(1));
}
}
Found nested element: ci1apart of type: Part and with classifier:
Found nested element: ci1part of type: Part and with classifier: