List part of an assembly to change properties

Hello

I'm looking to make a solidworks macro that launches from an assembly and lists all the parts of the assembly (A bit like a BOM can do). However, I want it to display the "Coordinate System" property and that I can change its value and that after validating, this property changes in the room( s) concerned.

Here's an image that represents what I want to do. (For the moment I'm trying to do it only for the reference column) On this image this is what is done on Catia with a macro where you can change all the properties of each part.

Thank you


liste_piece.png

Good evening

Here is a piece of code that may help you, it goes through all the parts of an asm and displays the "Description" and "Landmark" properties in a msgbox! 

Otherwise, everything you want to do is doable, all you have to do is code!!


macro1.swp
1 Like

You can make a BOM in the assembly with a model where the coordinate column appears. Then modify the guides wanted by double clicking in the box. The property will fit in the room, it's bidirectional ;-)

5 Likes

Nice your solution max59 .

Otherwise, on the macro side, I found this:

https://www.codestack.net/solidworks-tools/#custom-properties

Or in batch  there is also this:

https://forum.solidworks.com/thread/229516

 

1 Like