ComponentReporter+.rb
-
Hi TIG. Is it possible to generate just a name + Component Definition Description report with this plugin?
-
@dedmin said:
Hi TIG. Is it possible to generate just a name + Component Definition Description report with this plugin?
Yes - just edit it so that the .csv file it writes is limited to those two things...

file.puts("DEFN-NAME,COUNT,DESCRIPTION,GUID\n\n") ###... file.puts(c[0]+","+c[1]+","+c[2]+","+c[3])
returns DEFN-NAME, COUNT, DESCRIPTION, GUID
so to limit it change it to
file.puts("DEFN-NAME,DESCRIPTION\n\n") ###... file.puts(c[0]+","+c[2])
So just those items in the array 'c' are added
-
Super - I deleted the other 2 reports and now have only what I need! Thanks, TIG!

-
One more question - is it possible to report only components that don't have any nested components with this rubby?
-
@dedmin said:
One more question - is it possible to report only components that don't have any nested components with this ruby?
Not too easily... but if you make a list of definitions and then test their entities etc etc...
model=Sketchup.active_model not_nested=[] model.definitions.each{|d| nested=false d.entities.each{|ee| if ee.class==Sketchup;;ComponentInstance nested=true break end#if } not_nested<< d if not nested } ### 'not_nested' is now an array of all definitions that don't contain a component instance... ### so now process this list...
-
It seems that even if I choose to apply the report on the selected components it reports all the components.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement