Calling subassembly id in HTML Labels-template

Calling subassembly id in HTML Labels-template

licensKKGSY
Enthusiast Enthusiast
325 Views
2 Replies
Message 1 of 3

Calling subassembly id in HTML Labels-template

licensKKGSY
Enthusiast
Enthusiast

Hi everyone,

Script noob here

So I have just edited a label template to suit my needs to label part on nestet sheets. Right now it shows PartID, Assembly and a part preview. So far so good, but "assembly" shows the top-level assembly only. I would like to know if anyone has got an idea on how to call subassembly names?

The file format is HTML, which is not supported here for file sharing. Please let me know what file format to save in for someone to have a look.

 

licensKKGSY_0-1692879704976.png

 

 

 

0 Likes
326 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

I have no idea what you're trying to do. What are you wanting to do with the HTML?

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

licensKKGSY
Enthusiast
Enthusiast

Hi Brian, thank you for the response. Apologies for being unclear.

So basically I want data-shown-properties to include something like "parent-assembly-level-1". So lets say I'm making parts for a house I might have a door as a part in an subassembly called "lower floor" which is then a part of the top level assembly called "house". Right now I have "door" and "house". I have tried to look through the available properties in this function, but can't seem to find others than "assembly". So I'm wishing for some function that gets the total number of parent-assemblies for a part and then makes the name of those available as "parent-assembly-level-1" and "parent-assembly-level-2" for instants. Does that make sense?

0 Likes