• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Request] Component Report - nested materials

Scheduled Pinned Locked Moved Plugins
1 Posts 1 Posters 257 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    axeslash
    last edited by 11 Apr 2016, 15:19

    So imagine I have an SU file that is structured with various groups containing components that contain more groups and components etc etc...fairly deeply nested.

    I need to generate a report that MS Excel can read (e.g. .csv), containing the name and material of each and every group and component instance - 'flattened'. I also want to report the INHERITED material; so something like this:

    
    Name				Instance's Material		Inherited Material
    Model			Default					Default
    ComponentParent		Default					Default
    ComponentChild		Red						Red
    ComponentChild		Default					Default
    ComponentParent		Yellow					Yellow
    ComponentChild		Default					Yellow
    ComponentChild		Default					Yellow
    ComponentParent		Green					Green
    ComponentChild		Red						Red
    ComponentChild		Default					Green
    
    

    The order of the output doesn't matter, I'll be sorting and filtering etc later.

    The ability to export a the definitions' attributes would be useful too.

    The ability to do some regex-style filtering by component definition name would be incredible, but not essential (the only instances I actually need to export have definition names that begin with an underscore, but I can always filter that afterwards in Excel if necessary).

    So far I have come across two options, neither of which quite do what I want:

    The first is ComponentReporter++, which works fine apart from the fact that it doesn't give me the inherited material (it just gives me '<Default>' instead).

    The second is AttrReporter, which gives a cleaner output than ComponentReporter++, and exports attributes, but doesn't show any material information at all, let alone inherited materials.

    I would have a go at this myself, but I know absolutely nothing about Ruby and thus feel way out of my depth with something like this.

    Does something like this exist already? Or would anyone be willing to have a crack at a new version of ComponentReporter or AttrReporter?

    Thanks

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement