sketchucation logo sketchucation
    • Login
    1. Home
    2. chrisglasier
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 103
    • Posts 1,031
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Hierarchies!!!

      @plot-paris said:

      Nested Components
      if you have a big model, with lots of components, you can easily loose your overview over all the objects in the component-editor.
      therefore we now have nested components. for example, you create door-, and window-components. then you make the building a component as well - that automatically hides the door-, and window-components in the component editor.

      Do you think my development of namesets could help in this respect?

      I should point out that at this stage floor 5 has only a bathroom (other rooms have been named but not elaborated). Selecting elements displays just the walls, spaces just the products. What is displayed is determined by the way you organise the hierarchy.

      What do you think?

      Chris


      Nameset hierarchies 0.jpg


      Nameset hierarchies 1.jpg


      Nameset hierarchies 2.jpg

      posted in SketchUp Feature Requests
      chrisglasierC
      chrisglasier
    • RE: [Plugin] Proper Animation V1.08 Beta(Updated 14/11/10)

      @morisdov said:

      ... full progress of a construction site or assembly procedures... etc

      Under Way of Working on June 9th I wrote " ... this could mean more Pro versions, more scripts, a new profession of nameset makers, animations in addition to bar charts ..."; so you can imagine I am very happy to see you have come up with this. But unfortuately I cannot open your googlepage from here for some reason; would you be kind enough to upload the zip file or send it to me by PM?

      Thanks

      Chris

      posted in Plugins
      chrisglasierC
      chrisglasier
    • RE: Cluster Components

      I have taken the liberty of extracting parts of your PM that may be of interest to others.

      @aadbuild said:

      You will have to forgive me I am not exactly sure how and what the nameset actually does and how it takes the information from sketchup.

      A nameset names all the physical things in a human endeavour using plain text and freely available code. This means it can be used by anyone who has an interest in it. Just put the name somewhere accessible and add a universal function call; those authorised can then add their bit. Information you used to make clusters in Sketchup is now captured in the name's record; select a device in the top panel for Sketchup to assemble the components, as in the coding example, or another, to make a time schedule and so on. You might consider a name and its address to be something like a barcode that is key to automating all sorts of things previously done by people (in your case, making clusters). Everyday work, not just code, becomes object-oriented.

      @aadbuild said:

      Let me know if am getting way to far ahead of what nameset can do....

      No I don't think so but I would like to test this in the forum, if anyone is interested. The nameset concept does not work well without modelling and so when I discovered Sketchup and the webdialog everything seemed pre-ordained (well that's probably going too far!). Hopefully, the nameset plugin can be cooperatively developed for use pretty soon.

      Chris

      posted in SketchUp Discussions
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      No I decided to use the idea to do it differently as above (if you see what I mean!)

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      No I don't think so. Bit beyond my knowledge really!

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Cluster Components

      I hope you don't mind my barging in on your thread; I have no short term fix just a longer term solution that you and others may like to consider. Based on Sketchup's webdialog (which allows html/javascripts and Sketchup/Ruby interaction) it is this:

      Rather than manually clustering components in Sketchup simply pick plain text names to identify them as shown on this nameset.

      Sketchup nameset - doors.jpg

      A nameset is something like a spreadsheet, except its cells move to display just their association with others. Each name with its address (the white trail that leads back to the project) is a unique identifier which provides access to its record, an unlimited series of CSS type name/value pairs that includes sizes, coordinates, source (real and model), price, timing ... and so on, obtained from many sources.

      Rather than putting in and then extracting information from a modelling application, you generate models (or clusters) and analyses from the same unfettered plain text data - e.g. you can use web technology to generate different sizes, or abstract and even buy the ironmongery for a whole project.

      Here's some code I used to pick up components and position them.

      //javascript
      
      function productsRun(){
      
      entryNo = parentNo
      coreIdentityExtractor()
      
      para = new Array(theFile,theX,theY,theZ)
      para = para.join(",")
      
      if(sketchup == 1) window.location.href = 'skp;find@'+para     }
      
      
      #Ruby
      
      @dlg.add_action_callback("find") {|d, p|
      	a= p.split(",")
      	
      	subDir ="Components/NamesetComponents/"
      	fileName = a[0]+".skp"
            
      	theX = Integer(a[1]).mm
      	theY = Integer(a[2]).mm
      	theZ = Integer(a[3]).mm
          
            point = Geom;;Point3d.new theX,theY,theZ
             
            transform = Geom;;Transformation.new point
            model = Sketchup.active_model
            entities = model.active_entities
            path = Sketchup.find_support_file fileName, subDir
            
            definitions = model.definitions
            componentdefinition = definitions.load path
            instance = entities.add_instance componentdefinition, transform   }
      
      

      Hope you find this helpful/interesting ...

      Chris

      posted in SketchUp Discussions
      chrisglasierC
      chrisglasier
    • Two styles from one ruby

      I am looking for some advice about the following:

      I want to offer a 3D sketchup display (e.g. for exploring) and a 2D sketch for compiling instructions (e.g. to position components in a model or products on site), something like this:

      Sketchup nameset - step 4E.jpg

      I made a template set with top view and parallel projection and a callback which works apart from the style part:

      @dlg.add_action_callback("topper") {|d, p|
      	
      	model = Sketchup.active_model
      	view = model.active_view
      	newview= view.zoom_extents
      	
      	subDir = "Styles/spdesign_scf/"
      	fileName = "Sharp_3h_pencil.style"
      	
      	stylePath = Sketchup.find_support_file fileName, subDir
      	
      	status = model.styles.add_style stylePath true
      	
      	subDir= "D;\\Nameset1\\Thumbnails\\"
           
      	thumbName = "Thumb.jpg"
            
      	status = view.write_image subDir+thumbName
      	
      	status = styles.add_style stylePath false
      	
      	Sketchup.send_action("viewIso;") 
      	Sketchup.send_action("viewPerspective;") 
      	Sketchup.send_action("viewZoomExtents;")      }
      

      I would not only like to make it work, but also to improve the jpg in the webdialog.

      Any help gratefully received!

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      Although there have been no replies I thought I should update this topic, as, with some devious sleuthing, I did find what I needed. In particular, thanks to Todd Burch, Knife and basal here - http://groups.google.com/group/sketchupruby/browse_thread/thread/74c6e01150aa8a78 I resolved my image directory folder problem - shown in the code box.

      @dlg.add_action_callback("topper") {|d, p|
      	
      	model = Sketchup.active_model
      	view = model.active_view
      	newview = view.zoom_extents 
      	
      	subDir= "C;\\Program Files\\Google\\Google SketchUp 6\\Plugins\\Thumbnails\\"
           
      	thumbName = "Thumb.jpg"
            
      	status = view.write_image subDir+thumbName
      	
      	Sketchup.send_action("viewIso;") 
      	
      	camera = Sketchup;;Camera.new
      	status = camera.perspective=true 
      	
      	#doesn't change to perspective
      	
      	model = Sketchup.active_model
      	view = model.active_view
      	newview = view.zoom_extents        }
      

      With javascripts and so on I am able to get this start on workable automated orthogonal views in the small webdialog window:

      Sketchup nameset - step 4D.jpg

      I will also update the nameset web site on Monday or Tuesday to explain why I think this important, and hopefully to avoid upsetting Coen by putting things in the wrong place!

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      OK I decided to put the web exporter idea aside and try to figure out, hopefully with your help, how to achieve this:

      Sketchup nameset - step 4C.jpg

      The thumbnails in the webdialog are jpgs made by hand by setting top view and parallel projection, scaling, shooting each entity, cropping and saving them in an approriate directory. Of course I want to automate this.

      The initial problem is that if I use view.write_image I cannot seem to get the files to go within my html root directory (plug-ins) so I can pick them up with javascript; they all go to a Documents and Settings sub directory. (So do thumbnails by the way).

      If that can be resolved, then I can try automating the multiple views, scaling, cropping and all the other painful things I've brought upon myself.

      As ever grateful for any help,

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      Its been raining here a lot but I don't think it's that. As I said I started from scratch (with a virgin download). Hopefully someone will come up with a solution ...

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Web exporter

      Perhaps it only works with SketchUp Pro?

      cg

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • Web exporter

      Error Loading File swivelButtonPlugin.rb
      14001: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. - C:/Program Files/Google/Google SketchUp 6/Plugins/swivelButtonPlugin/bin/RubyZip.dll

      It didn't! I even completely reinstalled Sketchup. Please can anyone help? I want to try and send jpgs for use as thumbnails.

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Google I/O 2008 - Advanced Ruby Scripting for Sketchup

      I have just watched the clip and noted it was dated 29th May 2008.

      On the very same day I started a thread called SketchUp nameset workability in Google Sketchup Help, part of which went:

      "I am trying to find out whether sketchUp and ruby programming could be workable as a nameset device, and would be most grateful for your help... would it be possible ... to generate a sketchUp model from an array of names?"

      Scott actually answered my question simultaneously! But seriously I am begining to think Sketchup/Ruby API business could well be more significant than the birth of DOS was in its day.

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Component Problems - Please Help!!!

      Look at the clip at http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=10443. It's all there - webdialog, using Javascripts to manipulate data, Javascript/Ruby interaction, timeOut animation (for making the appearance of a snap), web export and sketchy physics. (Also posted on Google Sketchup Help)

      posted in Newbie Forum
      chrisglasierC
      chrisglasier
    • RE: Component Problems - Please Help!!!

      @tobobo said:

      Fi,... It is a great tool for creating the components and for you as a designer it is ideal.

      That's right, but because Sketchup has a webdialog, you or your customer can also collect components and manipulate them using familiar website buttons, baubles and beads. Rather than "load the programme onto your website" load your website into the programme. So, thinking aloud, your ordinary website opens with an option to download and run Sketchup and your plug-in file; if this is selected, the website wraps itself up in the webdialog!

      If you, Fi, can manage to make models I am sure you will have no trouble with the simple HTML and Javascripts needed and much of the web/sketchup interaction has been kindly made clear in response to my own posts.

      See also viewtopic.php?f=180&t=10419 as James wrote above.

      Chris

      posted in Newbie Forum
      chrisglasierC
      chrisglasier
    • RE: Can you Mate Components??? Help Please!

      You could have a look at my new Google site http://sites.google.com/site/namesets in which I trace the steps I am taking to use sketchup with something called namesets. You will definitely need a webdialog for your customer to select your products. It can be as simple as you like with just two basic functions: opening skp files and some device that moves each through the optional locations. The webdialog can be made with HTML and Javascript. Try it! Ask if you need help.

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Index of entity

      Thank you for all your suggestions. I am sorry to report that I can't get any of them to give me the entity array index number for the selected entity. I guess there is something I have done elsewhere that I do not yet have the experience to spot - I will keep your suggestions for later. I think it only natural to want to click on the images if the nameset is in the same screen as sketchup but I can get the index number from the javascript that spins out the entities. But I can't get the entity to show as selected. Is this possible? Attached are a couple of shots indicating what I can manage. Thanks again.

      Chris

      PS The main point is purely to show what has been selected , particularly important when there are many of the same components. I plan for Javascript to handle defining of relationships, alignments and so on. The screen is then cleared and entities respun out.


      Selection Group.jpg


      Selection Component.jpg

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • Index of entity

      I want to find the index number of a single selected entity (componentInstance or group) in a model but I just cannot find any coding recognisable to me. Any help gratefully received.

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Way of Working

      I made a Google web site at http://sites.google.com/site/namesets/; just a few snaps of the steps so far ...

      posted in SketchUp Feature Requests
      chrisglasierC
      chrisglasier
    • RE: Select all and delete

      @morisdov said:

      Update us on your progress in a new forum thread hopefully soon.

      I posted a something in the ideas box of the corner bar.

      But to finish off the select all delete business so far I find the following works:

      @dlg.add_action_callback("clearer") {|d, p|
      ents=Sketchup.active_model.active_entities
      status = ents.clear! }

      After a while the other two brought up some frightening looking splat windows.

      Thanks

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • 1 / 1