sketchucation logo sketchucation
    • Login
    1. Home
    2. meeta
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 29
    • Groups 1

    Topics

    • M

      How to apply attributes through code? and how do they work?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      21
      0 Votes
      21 Posts
      567 Views
      TIGT
      Things [each called an Entity] that are 'visible' in a model are typically geometry [lines, faces etc], and groups and components [what is commonly called a component is actually a 'component-instance']. These groups and instances contain geometry - they can also contain sub-groups and other instances. This is a simplified picture since there's also Images, Text, Dimensions etc etc but lets keep it simple ! Within the model's 'database' there are other things you can't see but that you can use - inside 'collections' called Materials, Layers, Styles and ComponentDefinitions. Each of these will have entries like Material, Layer, Style and ComponentDefinition. So far so good ? When you look at the Components in the Browser you are looking into the model's database and seeing the Component-definitions available for use. When you select [highlight] something in a model you can get its 'class' [typename etc] so with the initial examples above you have Sketchup::Edge, Sketchup::Face, Sketchup::Group and Sketchup::ComponentInstance. Let's assume you have somehow set a variable instance=ss[i] which is a Sketchup::ComponentInstance. You can find its definition thus definition=instance.definition Now you can find an instance.definition but conversely you can find a definition.instances [i.e. all of that definition's instances] Any particular definition's instance doesn't contain anything at all - it is a marker for the definition itself, so instance.definition.entities gives you a list of entities inside the definition that that instance is using... You can even 'swap' an instance's definition for another one: instance.definition=another_definition ...
    • M

      Setting a certain unit as standard

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      524 Views
      M
      Thank you Thom and Martin.. I understand better now :
    • M

      Industry Foundation Classes in SketchUp

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      273 Views
      No one has replied
    • M

      Mathematics related problem

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      23
      0 Votes
      23 Posts
      2k Views
      M
      ahh notepad++ old friend.. i used to do my c++ programming on it and then take it to university to test it! haha i think i am gonna take the night off and start over with this tomorrow might crack something.. good night world!
    • M

      Newbie help - getting dimensions of a simple object

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      178 Views
      M
      wow bounding box is such a neat thing.. thanks for pointing it out!!
    • 1 / 1