Map.Add CreateMapValue( "Length", "Bounding Box Length", CreateMapValue( "Mass", "Mass", """SW-Mass""") However should the cut-list keep the original name all properties will be dynamically updated without the need to rerun the macro. If cut-list is renamed property will not be updated and it will be required to rerun the macro. Cut-list custom properties are linked by expressions and cut-list name.Macro will set Create Cut List Automatically and Updated Automatically options on the cut-list folders.Only single cut-list files are supported (error is thrown if more than one cut list is available).Map.Add CreateMapValue( "Material", "", """SW-Material""") 'Add custom property 'Material' and set to the 'SW-Material' formula regardless if this is a sheet metal part or not End Sub Notes And Limitations Map.Add CreateMapValue( "Width", "Bounding Box Width", "") 'Add custom property 'Width' from the 'Bounding Box Width' of the sheet metal or empty if not sheet metal part Map.Add CreateMapValue( "Part Number", "", "") 'Add empty 'Part Number' custom property Sub Init( Optional dummy As Variant = Empty)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |